1
0
Fork 0
forked from len0rd/rockbox

D2: Update dual boot to use the hold switch. Update bootloader to show messages until HOLD released, keep holding POWER to show old debug screen (these modes will eventually be removed).

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17032 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rob Purchase 2008-04-08 08:01:18 +00:00
parent d74117450c
commit f4deea6027
2 changed files with 14 additions and 16 deletions

View file

@ -72,9 +72,9 @@ start_loc:
#ifdef TCCBOOT
#ifdef COWON_D2
ldr r0, =0xf005a000
ldr r0, [r0, #0x40] /* Read GPIO B */
tst r0, #0x4
ldreq pc, [pc, #-28] /* Jump to original firmware if keypad not pressed */
ldr r0, [r0, #0x20] /* Read GPIO A */
tst r0, #0x8
ldrne pc, [pc, #-28] /* Jump to original firmware if HOLD not pressed */
#else
#error No bootup key detection implemented for this target
#endif