debug board setup / turning aux led on very late in the suspend path

Timo Juhani Lindfors timo.lindfors at
Fri Nov 5 12:23:25 CET 2010

Timo Juhani Lindfors <timo.lindfors at> writes:
> 0xc003311c in gta02_gpb_set ()
> 0xc003311c <gta02_gpb_set+100>: str     r2, [r3, #20]
> 0xc0033120 <gta02_gpb_set+104>: msr     CPSR_c, lr
> 0xc0033124 <gta02_gpb_set+108>: ldm     sp, {r4, r5, r6, r11, sp, pc}
> (gdb) p/x $r3
> $11 = 0xfb000000
> shows that the normal LED driver accesses them at a different address.

If I try to access the LED via this address very late in the suspend
code I avoid the crash but the LED is not turned on either:

(gdb) xsi
0xc003286c in s3c2410_cpu_suspend ()
0xc003286c <s3c2410_cpu_suspend+12>:    str     r5, [r4, #20]
0xc0032870 <s3c2410_cpu_suspend+16>:    ldr     r4, [pc, #92]   ; 0xc00328d4 <s3c2410_do_sleep+20>
0xc0032874 <s3c2410_cpu_suspend+20>:    ldr     r5, [pc, #92]   ; 0xc00328d8 <s3c2410_do_sleep+24>
(gdb) p/x $r5
$15 = 0x4
(gdb) p/x $r4
$16 = 0xfb000000

Maybe the GPIOs are set as inputs or something?

More information about the openmoko-kernel mailing list