comparison src/cs/system/main/init.c @ 675:85cc48e18a43

init.c: enable LPG and PWL pin mux on Tango
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 20 Jun 2020 03:48:57 +0000
parents 711b1c6c4e72
children 140a0d24a64c
comparison
equal deleted inserted replaced
674:0ccda9c065bc 675:85cc48e18a43
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) || defined(CONFIG_TARGET_DSAMPLE) 357 #elif defined(CONFIG_TARGET_PIRELLI) || \
358 defined(CONFIG_TARGET_DSAMPLE) || defined(CONFIG_TARGET_TANGO)
358 /* 359 /*
359 * Pirelli's version of this Init_Target() function 360 * Pirelli's version of this Init_Target() function
360 * in their fw sets the ASIC_CONF register to 0x6050, 361 * in their fw sets the ASIC_CONF register to 0x6050,
361 * which means PWL on the LT/PWL pin and LPG on the 362 * which means PWL on the LT/PWL pin and LPG on the
362 * DSR_MODEM pin. 363 * DSR_MODEM pin.
363 * 364 *
364 * Also as a bold FreeCalypso change, we now set the same 365 * 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 * 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 * has LEDs for PWL and for LPG and they work as expected,
367 * thus the board is clearly wired for this pin config. 368 * thus the board is clearly wired for this pin config.
369 *
370 * Finally, we set the same config on Tango targets:
371 * DSR_MODEM/LPG is configured as LPG in order to avoid
372 * the floating input, whereas LT/PWL works better as PWL.
368 */ 373 */
369 *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x6050; 374 *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x6050;
370 #elif defined(CONFIG_TARGET_GTAMODEM) || defined(CONFIG_TARGET_GTM900) 375 #elif defined(CONFIG_TARGET_GTAMODEM) || defined(CONFIG_TARGET_GTM900)
371 /* 376 /*
372 * The DSR_MODEM/LPG Calypso signal is unconnected on 377 * The DSR_MODEM/LPG Calypso signal is unconnected on