# HG changeset patch # User Mychaela Falconia # Date 1590643985 0 # Node ID 712a28fda77876098eb0e066b81a148b67b610af # Parent 4ec99586467966ebb6ca6a407fae566170d4e2a4 init.c: sync with Magnetite This change affects only the D-Sample target which is not supported in Selenite, but we need to keep the diff down. diff -r 4ec995864679 -r 712a28fda778 src/cs/system/main/init.c --- a/src/cs/system/main/init.c Thu May 28 05:29:09 2020 +0000 +++ b/src/cs/system/main/init.c Thu May 28 05:33:05 2020 +0000 @@ -354,12 +354,17 @@ #else #if (BOARD==35) *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x2000; - #elif defined(CONFIG_TARGET_PIRELLI) + #elif defined(CONFIG_TARGET_PIRELLI) || defined(CONFIG_TARGET_DSAMPLE) /* * Pirelli's version of this Init_Target() function * in their fw sets the ASIC_CONF register to 0x6050, * which means PWL on the LT/PWL pin and LPG on the * DSR_MODEM pin. + * + * Also as a bold FreeCalypso change, we now set the same + * 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. */ *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x6050; #elif defined(CONFIG_TARGET_GTAMODEM) || defined(CONFIG_TARGET_GTM900) @@ -373,6 +378,7 @@ */ *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x6040; #else + /* TI's original firmware setting */ *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x6000; #endif /* (BOARD == 35) */ #endif