comparison src/cs/drivers/drv_core/armio/armio.c @ 589:9b81b68e8e64

armio.c: SE J100 GPIO config changed to new knowledge from disassembly
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 14 Mar 2019 23:51:42 +0000
parents f2e752052db5
children 8f50b202e81f
comparison
equal deleted inserted replaced
588:f2e752052db5 589:9b81b68e8e64
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) 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 */
241 245
242 /* GPIO out all zeros - the LCD backlight is OFF */ 246 /* GPIO out all zeros - the LCD backlight is OFF */
243 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x0000; 247 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x0000;
244 248
245 AI_ConfigBitAsOutput(1); /* LCD backlight control */ 249 /* setting of GPIOs as outputs: register setting from the original fw */
246 AI_ConfigBitAsOutput(3); /* LCDA0 (?) */ 250 *((volatile SYS_UWORD16 *) ARMIO_IO_CNTL) = 0x2A59;
247 251
248 #elif defined(CONFIG_TARGET_PIRELLI) 252 #elif defined(CONFIG_TARGET_PIRELLI)
249 253
250 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x0000; 254 *((volatile SYS_UWORD16 *) ARMIO_OUT) = 0x0000;
251 255