summaryrefslogtreecommitdiffstats
path: root/bootloader/ipod.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-01-31 01:50:07 +0000
committerDave Chapman <dave@dchapman.com>2006-01-31 01:50:07 +0000
commitf9dac40cf311ef130da190cc71de9148551c9cdc (patch)
tree569f8330060b2f72fa4072ef262ba6dcd00c47b0 /bootloader/ipod.c
parentea72d05ec6426b65d52fcbcfbbb008351830583f (diff)
downloadrockbox-f9dac40cf311ef130da190cc71de9148551c9cdc.tar.gz
rockbox-f9dac40cf311ef130da190cc71de9148551c9cdc.tar.bz2
rockbox-f9dac40cf311ef130da190cc71de9148551c9cdc.zip
iPod: Fix the detection of lcd type for the iPod Photo - this should fix problems with that LCD. Affected users also need to install a new bootloader - available from the iPod Installation wiki page.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8499 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/ipod.c')
-rw-r--r--bootloader/ipod.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bootloader/ipod.c b/bootloader/ipod.c
index d09a227d17..4de6b61e62 100644
--- a/bootloader/ipod.c
+++ b/bootloader/ipod.c
@@ -44,6 +44,10 @@
#define IPOD_HW_REVISION (*((volatile unsigned long*)(0x00002084)))
+/* We copy the hardware revision to the last four bytes of SDRAM and then
+ re-read it after we have re-mapped SDRAM to 0x0 in Rockbox */
+#define TMP_IPOD_HW_REVISION (*((volatile unsigned long*)(0x11fffffc)))
+
#define BUTTON_LEFT 1
#define BUTTON_MENU 2
#define BUTTON_RIGHT 3
@@ -335,6 +339,8 @@ void* main(void)
#endif
+ TMP_IPOD_HW_REVISION = IPOD_HW_REVISION;
+
system_init();
kernel_init();
lcd_init();