# HG changeset patch # User Mychaela Falconia # Date 1592624937 0 # Node ID 85cc48e18a43d15d9dbc500feac10d2ad9effd6c # Parent 0ccda9c065bc702ca64303e8aca44387719f7c01 init.c: enable LPG and PWL pin mux on Tango diff -r 0ccda9c065bc -r 85cc48e18a43 src/cs/system/main/init.c --- a/src/cs/system/main/init.c Fri May 29 04:33:30 2020 +0000 +++ b/src/cs/system/main/init.c Sat Jun 20 03:48:57 2020 +0000 @@ -354,7 +354,8 @@ #else #if (BOARD==35) *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x2000; - #elif defined(CONFIG_TARGET_PIRELLI) || defined(CONFIG_TARGET_DSAMPLE) + #elif defined(CONFIG_TARGET_PIRELLI) || \ + defined(CONFIG_TARGET_DSAMPLE) || defined(CONFIG_TARGET_TANGO) /* * Pirelli's version of this Init_Target() function * in their fw sets the ASIC_CONF register to 0x6050, @@ -365,6 +366,10 @@ * PWL and LPG pin configs on the D-Sample: the DS board * has LEDs for PWL and for LPG and they work as expected, * thus the board is clearly wired for this pin config. + * + * Finally, we set the same config on Tango targets: + * DSR_MODEM/LPG is configured as LPG in order to avoid + * the floating input, whereas LT/PWL works better as PWL. */ *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x6050; #elif defined(CONFIG_TARGET_GTAMODEM) || defined(CONFIG_TARGET_GTM900)