summaryrefslogtreecommitdiff
path: root/bootloader
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/ipod.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bootloader/ipod.c b/bootloader/ipod.c
index f62fa26..793253a 100644
--- a/bootloader/ipod.c
+++ b/bootloader/ipod.c
@@ -193,7 +193,11 @@ static int key_pressed(void)
unsigned char state;
#if CONFIG_KEYPAD == IPOD_4G_PAD
+#if defined(APPLE_IPODMINI)
+ state = GPIOA_INPUT_VAL & 0x3f;
+#else
state = opto_keypad_read();
+#endif
if ((state & 0x4) == 0) return BUTTON_LEFT;
if ((state & 0x10) == 0) return BUTTON_MENU;
if ((state & 0x8) == 0) return BUTTON_PLAY;