changeset 198:712a28fda778

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.
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 28 May 2020 05:33:05 +0000
parents 4ec995864679
children 143f3a07e273
files src/cs/system/main/init.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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