changeset 639:026c98f757a6

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.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 30 Jan 2020 18:19:01 +0000
parents cab2f315827e
children 16eb1b9640dc
files src/cs/layer1/tpu_drivers/source0/tpudrv12.h targets/gtm900.h
diffstat 2 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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