comparison src/cs/system/Main/init.c @ 286:840113655bbf

GTA0x target: mux DSR_MODEM/LPG signal to LPG in init.c to avoid floating
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 08 Aug 2017 02:50:13 +0000
parents 8fb920215a46
children f7f1f6f1a77d
comparison
equal deleted inserted replaced
285:504c9dcbffb2 286:840113655bbf
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) /* from disasm of original fw */ 357 #elif defined(CONFIG_TARGET_PIRELLI)
358 /*
359 * Pirelli's version of this Init_Target() function
360 * in their fw sets the ASIC_CONF register to 0x6050,
361 * which means PWL on the LT/PWL pin and LPG on the
362 * DSR_MODEM pin.
363 */
358 *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x6050; 364 *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x6050;
365 #elif defined(CONFIG_TARGET_GTAMODEM)
366 /*
367 * The DSR_MODEM/LPG Calypso signal is unconnected on
368 * Openmoko's modem, so let's mux it as LPG (output)
369 * so it doesn't float, like Foxconn seem to have done
370 * on the Pirelli.
371 */
372 *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x6040;
359 #else 373 #else
360 *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x6000; 374 *((volatile SYS_UWORD16 *) ASIC_CONF) = 0x6000;
361 #endif /* (BOARD == 35) */ 375 #endif /* (BOARD == 35) */
362 #endif 376 #endif
363 #endif 377 #endif