FreeCalypso > hg > fc-selenite
comparison src/cs/system/main/init.c @ 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 | 4f40ae165be4 |
children | ba3693cbd40e |
comparison
equal
deleted
inserted
replaced
197:4ec995864679 | 198:712a28fda778 |
---|---|
352 // drp_power_on(); This should be done after the script is downloaded. | 352 // drp_power_on(); This should be done after the script is downloaded. |
353 #endif | 353 #endif |
354 #else | 354 #else |
355 #if (BOARD==35) | 355 #if (BOARD==35) |
356 *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x2000; | 356 *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x2000; |
357 #elif defined(CONFIG_TARGET_PIRELLI) | 357 #elif defined(CONFIG_TARGET_PIRELLI) || defined(CONFIG_TARGET_DSAMPLE) |
358 /* | 358 /* |
359 * Pirelli's version of this Init_Target() function | 359 * Pirelli's version of this Init_Target() function |
360 * in their fw sets the ASIC_CONF register to 0x6050, | 360 * in their fw sets the ASIC_CONF register to 0x6050, |
361 * which means PWL on the LT/PWL pin and LPG on the | 361 * which means PWL on the LT/PWL pin and LPG on the |
362 * DSR_MODEM pin. | 362 * DSR_MODEM pin. |
363 * | |
364 * Also as a bold FreeCalypso change, we now set the same | |
365 * PWL and LPG pin configs on the D-Sample: the DS board | |
366 * has LEDs for PWL and for LPG and they work as expected, | |
367 * thus the board is clearly wired for this pin config. | |
363 */ | 368 */ |
364 *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x6050; | 369 *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x6050; |
365 #elif defined(CONFIG_TARGET_GTAMODEM) || defined(CONFIG_TARGET_GTM900) | 370 #elif defined(CONFIG_TARGET_GTAMODEM) || defined(CONFIG_TARGET_GTM900) |
366 /* | 371 /* |
367 * The DSR_MODEM/LPG Calypso signal is unconnected on | 372 * The DSR_MODEM/LPG Calypso signal is unconnected on |
371 * | 376 * |
372 * On the GTM900 module this signal is explicitly defined as LPG. | 377 * On the GTM900 module this signal is explicitly defined as LPG. |
373 */ | 378 */ |
374 *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x6040; | 379 *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x6040; |
375 #else | 380 #else |
381 /* TI's original firmware setting */ | |
376 *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x6000; | 382 *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x6000; |
377 #endif /* (BOARD == 35) */ | 383 #endif /* (BOARD == 35) */ |
378 #endif | 384 #endif |
379 #endif | 385 #endif |
380 #endif /* ANLG(ANALOG)) */ | 386 #endif /* ANLG(ANALOG)) */ |