comparison src/cs/system/main/init.c @ 666:711b1c6c4e72

LPG and PWL config for D-Sample and GTM900 targets
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 27 May 2020 23:19:42 +0000
parents 37396b85f3f7
children 85cc48e18a43
comparison
equal deleted inserted replaced
665:2795a11973b8 666:711b1c6c4e72
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)) */