firmware: calibration: split afcparams.c from rf_tables.c for gta0x
commit63fa84a93d17bb1faf840c3b88a8b5bbb8eea1d6
authorMychaela Falconia <falcon@freecalypso.org>
Mon, 28 Sep 2020 21:00:57 +0000 (28 21:00 +0000)
committerHarald Welte <laforge@osmocom.org>
Wed, 30 Sep 2020 23:48:43 +0000 (1 01:48 +0200)
treec24feafc788a0b24edafcafdf4fbe1b6ca90da5f
parent905c602373d92ace5a08832a6e18462cd1e3426b
firmware: calibration: split afcparams.c from rf_tables.c for gta0x

We have new hardware targets that have appeared since the original
OS#3582 patch was created, namely Huawei GTM900-B and the upcoming
FreeCalypso Caramel2 board.  These new targets need the same APC
offset as gta0x and fcdev3b (TI's original Leonardo value), they
have proper calibration records in their FFS (meaning that all
compiled-in numbers become no-effect placeholders), and their PA
tracts are similar enough to Openmoko/FCDEV3B to where even in the
absence of calibration OM/FC numbers are close enough.  Thus most
of the tables in board/gta0x/rf_tables.c should be reusable by
these new targets.

However, these new targets have quite different VCXOs from Openmoko
and FCDEV3B, thus they need different AFC parameters.  Thus we split
board/gta0x/afcparams.c from board/gta0x/rf_tables.c, making the
latter more reusable.

Related: OS#3582
Change-Id: I92e245843253f279dd6d61bd5098766694c5215f
src/target/firmware/Makefile
src/target/firmware/board/gta0x/afcparams.c [new file with mode: 0644]
src/target/firmware/board/gta0x/rf_tables.c