FreeCalypso > hg > fc-selenite
comparison src/cs/system/main/init.c @ 203:ba3693cbd40e
src/cs: sync with Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 29 Jun 2020 00:27:13 +0000 |
parents | 712a28fda778 |
children |
comparison
equal
deleted
inserted
replaced
202:ae3106eb5923 | 203:ba3693cbd40e |
---|---|
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 |
886 SIM_Initialize (); | 891 SIM_Initialize (); |
887 #else | 892 #else |
888 bspUicc_bootInit(); | 893 bspUicc_bootInit(); |
889 #endif | 894 #endif |
890 #endif | 895 #endif |
896 | |
897 #ifdef CONFIG_TANGO_MODEM | |
898 AI_Init_Tango_pinmux(); | |
899 #endif | |
891 } | 900 } |
892 | 901 |
893 /* | 902 /* |
894 * Init_Serial_Flows | 903 * Init_Serial_Flows |
895 * | 904 * |