# HG changeset patch # User Mychaela Falconia # Date 1580408341 0 # Node ID 026c98f757a6a2084f69b1cd24dc9a0f95b59400 # Parent cab2f315827e584db2f02d1455bb36446364b022 tpudrv12.h & targets/gtm900.h: our current support is for MGC2GSMT version only As it turns out, there exist two different Huawei-made hw platforms both bearing the marketing name GTM900-B: one is MG01GSMT, the other is MGC2GSMT. The two are NOT fw-compatible: aside from flash chip differences which should be handled by autodetection, the two hw platforms are already known to have different RFFEs with different control signals, and there may be other differences not yet known. Our current gtm900 build target is for MGC2GSMT only; we do not yet have a specimen of MG01GSMT on hand, hence no support for that version will be possible until and unless someone provides one. diff -r cab2f315827e -r 026c98f757a6 src/cs/layer1/tpu_drivers/source0/tpudrv12.h --- a/src/cs/layer1/tpu_drivers/source0/tpudrv12.h Thu Jan 30 17:45:48 2020 +0000 +++ b/src/cs/layer1/tpu_drivers/source0/tpudrv12.h Thu Jan 30 18:19:01 2020 +0000 @@ -371,11 +371,12 @@ #define TU_1900 ( PA_HI_BAND | FEM_PINS ^ FEM_TX_HIGH ) #define TD_1900 ( PA_OFF | FEM_PINS ^ 0 ) -#elif defined(CONFIG_TARGET_GTM900) +#elif defined(CONFIG_TARGET_MGC2GSMT) /* - * Huawei GTM900-B is very closely based on Leonardo (2-band version), - * but the two FEM Tx control signals are reversed. + * The common MGC2GSMT version of Huawei GTM900-B is very closely based + * on Leonardo (2-band version), but the two FEM Tx control signals + * are reversed. */ #define FEM_TX_LOW BIT_1 // act1 diff -r cab2f315827e -r 026c98f757a6 targets/gtm900.h --- a/targets/gtm900.h Thu Jan 30 17:45:48 2020 +0000 +++ b/targets/gtm900.h Thu Jan 30 18:19:01 2020 +0000 @@ -1,3 +1,4 @@ #define CONFIG_TARGET_GTM900 1 +#define CONFIG_TARGET_MGC2GSMT 1 #define GPIO1_SPEAKER_CTRL 0 #define UARTFAX_CLASSIC_DTR_DCD 1