summaryrefslogtreecommitdiff
path: root/firmware/export/hwcompat.h
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2007-07-25 13:12:38 +0000
committerDave Chapman <dave@dchapman.com>2007-07-25 13:12:38 +0000
commitebc076bc15d6501674b9db772557a0eadfb4a5e2 (patch)
treea49e4460708d78c76ea25669afded36c3c631f04 /firmware/export/hwcompat.h
parented095235d44a9427e76f05f9f6d35325ddf1d4d9 (diff)
Remove the hack which read the ipod hardware revision from flash in the bootloader and passed it to Rockbox via a fixed address in SDRAM. Rockbox now remaps flash and so can just read the value itself. Also clean up the debug menu a little - only display the hw revision for ipods, and add the lcd_type variable to indicate the type of LCD (0 or 1) for ipod Color/Photo.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13986 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/hwcompat.h')
-rw-r--r--firmware/export/hwcompat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/export/hwcompat.h b/firmware/export/hwcompat.h
index 2261a91a36..b75ea81c8c 100644
--- a/firmware/export/hwcompat.h
+++ b/firmware/export/hwcompat.h
@@ -53,4 +53,12 @@ static inline int tuner_detect_type(void)
bool is_new_player(void);
#endif
+#ifdef IPOD_ARCH
+#ifdef BOOTLOADER
+#define IPOD_HW_REVISION (*((unsigned long*)(0x00002084)))
+#else
+#define IPOD_HW_REVISION (*((unsigned long*)(0x20002084)))
+#endif
+#endif
+
#endif /* HWCOMPAT_H */