comparison src/cs/drivers/drv_core/armio/armio.c @ 156:b0a18d9f99f4

armio.c: SE J100 target support
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 17 Mar 2019 07:08:34 +0000
parents e67bbb9b1fb9
children a911ac771094
comparison
equal deleted inserted replaced
155:ca705e7e03f8 156:b0a18d9f99f4
235 AI_ConfigBitAsOutput(2); /* headset jack switch */ 235 AI_ConfigBitAsOutput(2); /* headset jack switch */
236 AI_ConfigBitAsOutput(3); /* LCDA0 (?) */ 236 AI_ConfigBitAsOutput(3); /* LCDA0 (?) */
237 AI_ConfigBitAsOutput(8); /* MUSIC_A0 */ 237 AI_ConfigBitAsOutput(8); /* MUSIC_A0 */
238 AI_ConfigBitAsOutput(12); /* MUSIC_ON */ 238 AI_ConfigBitAsOutput(12); /* MUSIC_ON */
239 239
240 #elif defined(CONFIG_TARGET_J100)
241 /*
242 * GPIO config on this target is based on the disassembly of
243 * Init_Target() and AI_InitIOConfig() functions in the official fw.
244 */
245
246 /* GPIO out all zeros - the LCD backlight is OFF */
247 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x0000;
248
249 /* setting of GPIOs as outputs: register setting from the original fw */
250 *((volatile SYS_UWORD16 *) ARMIO_IO_CNTL) = 0x2A59;
251
240 #elif defined(CONFIG_TARGET_PIRELLI) 252 #elif defined(CONFIG_TARGET_PIRELLI)
241 253
242 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x0000; 254 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x0000;
243 255
244 AI_ConfigBitAsOutput(1); 256 AI_ConfigBitAsOutput(1);