FreeCalypso > hg > fc-magnetite
view scripts/cfg-template @ 600:8f50b202e81f
board preprocessor conditionals: prep for more FC hw in the future
This change eliminates the CONFIG_TARGET_FCDEV3B preprocessor symbol and
all preprocessor conditionals throughout the code base that tested for it,
replacing them with CONFIG_TARGET_FCFAM or CONFIG_TARGET_FCMODEM. These
new symbols are specified as follows:
CONFIG_TARGET_FCFAM is intended to cover all hardware designs created by
Mother Mychaela under the FreeCalypso trademark. This family will include
modem products (repackagings of the FCDEV3B, possibly with RFFE or even
RF transceiver changes), and also my desired FreeCalypso handset product.
CONFIG_TARGET_FCMODEM is intended to cover all FreeCalypso modem products
(which will be firmware-compatible with the FCDEV3B if they use TI Rita
transceiver, or will require a different fw build if we switch to one of
Silabs Aero transceivers), but not the handset product. Right now this
CONFIG_TARGET_FCMODEM preprocessor symbol is used to conditionalize
everything dealing with MCSI.
At the present moment the future of FC hardware evolution is still unknown:
it is not known whether we will ever have any beyond-FCDEV3B hardware at all
(contingent on uncertain funding), and if we do produce further FC hardware
designs, it is not known whether they will retain the same FIC modem core
(triband), if we are going to have a quadband design that still retains the
classic Rita transceiver, or if we are going to switch to Silabs Aero II
or some other transceiver. If we produce a quadband modem that still uses
Rita, it will run exactly the same fw as the FCDEV3B thanks to the way we
define TSPACT signals for the RF_FAM=12 && CONFIG_TARGET_FCFAM combination,
and the current fcdev3b build target will be renamed to fcmodem. OTOH, if
that putative quadband modem will be Aero-based, then it will require a
different fw build target, the fcdev3b target will stay as it is, and the
two targets will both define CONFIG_TARGET_FCFAM and CONFIG_TARGET_FCMODEM,
but will have different RF_FAM numbers. But no matter which way we are
going to evolve, it is not right to have conditionals on CONFIG_TARGET_FCDEV3B
in places like ACI, and the present change clears the way for future
evolution.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 01 Apr 2019 01:05:24 +0000 |
parents | 3d772a6268c4 |
children | 8cf3029429f3 |
line wrap: on
line source
[board.cfg] BOARD 41 DSAMPLE_FULL_COLOR var [chipset.cfg] ANLG_FAM 2 ANLG_PG 0 CHIPSET var [debug.cfg] TI_NUC_MONITOR 0 TI_PROFILER 0 [dio.cfg] DIOIL_CONFIG 0 [ffs.cfg] TARGET 1 _RVF 1 [l1sw.cfg] AMR var CUST 0 DCO_ALGO 0 IDS var L1_12NEIGH 1 L1_EOTD 0 L1_EOTD_QBIT_ACC 0 L1_GPRS var L1_GTT 0 L1_MIDI 0 L1_VOICE_MEMO_AMR var MELODY_E2 var OP_L1_STANDALONE 0 OP_RIV_AUDIO 1 ORDER2_TX_TEMP_CAL 1 RAZ_VULSWITCH_REGAUDIO 0 SECURITY 0 SPEECH_RECO var TESTMODE 1 TRACE_TYPE 4 VCXO_ALGO 1 [r2d.cfg] R2D_ASM 0 R2D_LCD_TEST 0 [rf.cfg] RF var RF_FAM var RF_PA var RF_PG var [rv.cfg] RVTOOL 0 TEST 0 _GSM 1 [swconfig.cfg] ALR 1 BT 0 DP 0 DWNLD 1 GSMLITE 0 L1_DYN_DSP_DWNLD var LONG_JUMP 3 MOVE_IN_INTERNAL_RAM 1 OP_WCP 0 PMODE var RVDATA_INTERNALRAM 0 SRVC var TR_BAUD_CONFIG var WCP_PROF 0 [sys.cfg] DSP var STD 6 [trace.cfg] LAYER_DBG 0xFFFFFFFF TRACE_LEVEL_FILTER 5