# HG changeset patch # User Mychaela Falconia # Date 1578166061 0 # Node ID d968a3216ba035cafb92239dff26c450011630c7 # Parent 597869e59805e009147c437690774a2ca8cc2930 new tangomdm build target TCS211/Magnetite built for target leonardo runs just fine on the Tango-based Caramel board, but a more proper tangomdm build target is preferable in order to better market these Tango modems to prospective commercial customers. The only differences are in GPIO and MCSI config: * MCSI is enabled in the tangomdm build config. * GPIO 1 is loudspeaker amplifier control on Leonardo, but on Tango platforms it can be used for anything. On Caramel boards this GPIO should be configured as an output driving high. * GPIO 2 needs to be configured as Calypso input on Leonardo, but on Tango platforms it can be used for anything. On Caramel boards this GPIO should be configured as an output, either high or low is OK. diff -r 597869e59805 -r d968a3216ba0 src/cs/drivers/drv_core/armio/armio.c --- a/src/cs/drivers/drv_core/armio/armio.c Sat Jan 04 19:07:02 2020 +0000 +++ b/src/cs/drivers/drv_core/armio/armio.c Sat Jan 04 19:27:41 2020 +0000 @@ -268,7 +268,7 @@ // if we are in an MMI!=0 build - for ACI builds use the AT@SPKR command. #ifdef CONFIG_TARGET_GTM900 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F01; -#elif (MMI != 0) +#elif (MMI != 0) || defined(CONFIG_GPIO1_HIGH) *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F02; #else *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x3F00; diff -r 597869e59805 -r d968a3216ba0 src/cs/layer1/tpu_drivers/source0/tpudrv12.h --- a/src/cs/layer1/tpu_drivers/source0/tpudrv12.h Sat Jan 04 19:07:02 2020 +0000 +++ b/src/cs/layer1/tpu_drivers/source0/tpudrv12.h Sat Jan 04 19:27:41 2020 +0000 @@ -234,7 +234,8 @@ #define TEST_TX_ON 0 #define TEST_RX_ON 0 -#if defined(CONFIG_TARGET_LEONARDO) || defined(CONFIG_TARGET_ESAMPLE) +#if defined(CONFIG_TARGET_LEONARDO) || defined(CONFIG_TARGET_ESAMPLE) || \ + defined(CONFIG_TARGET_TANGO) // 4-band config (E-sample, P2, Leonardo) #define FEM_7 BIT_2 // act2 diff -r 597869e59805 -r d968a3216ba0 targets/tangomdm.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/targets/tangomdm.conf Sat Jan 04 19:27:41 2020 +0000 @@ -0,0 +1,6 @@ +LINK_SCRIPT_SRC=src/cs/system/template/gsm_ds_amd8_compact.template +MAIN_blob=blobs/patches/main-fchw.lib +INIT_blob=blobs/patches/main-fchw/init.obj +TPUDRV_blob= +FLASH_BASE_ADDR=0 +FLASH_SECTOR_SIZE=0x10000 diff -r 597869e59805 -r d968a3216ba0 targets/tangomdm.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/targets/tangomdm.h Sat Jan 04 19:27:41 2020 +0000 @@ -0,0 +1,5 @@ +#define CONFIG_TARGET_TANGO 1 +#define CONFIG_MCSI_MODEM 1 +#define CONFIG_GPIO1_HIGH 1 +#define GPIO1_SPEAKER_CTRL 0 +#define UARTFAX_CLASSIC_DTR_DCD 0