summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-10-28 01:00:18 +0000
committerJens Arnold <amiconn@rockbox.org>2007-10-28 01:00:18 +0000
commitd3e101bd1184e5c1f474ff0978f65ac7e8e2dbfb (patch)
tree43e49a0b5f64785f6df775ba5bb3f078ad19200f
parentc266204aec4f3ff825e35292f29731267ac53df1 (diff)
downloadrockbox-d3e101bd1184e5c1f474ff0978f65ac7e8e2dbfb.tar.gz
rockbox-d3e101bd1184e5c1f474ff0978f65ac7e8e2dbfb.tar.bz2
rockbox-d3e101bd1184e5c1f474ff0978f65ac7e8e2dbfb.zip
The iPod Video has the HW version at a different address in ROM.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15338 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/export/hwcompat.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/firmware/export/hwcompat.h b/firmware/export/hwcompat.h
index b75ea81c8c..52232c9cc8 100644
--- a/firmware/export/hwcompat.h
+++ b/firmware/export/hwcompat.h
@@ -54,11 +54,19 @@ bool is_new_player(void);
#endif
#ifdef IPOD_ARCH
+#ifdef IPOD_VIDEO
+#ifdef BOOTLOADER
+#define IPOD_HW_REVISION (*((unsigned long*)(0x0000405c)))
+#else /* ROM is remapped */
+#define IPOD_HW_REVISION (*((unsigned long*)(0x2000405c)))
+#endif
+#else /* !IPOD_VIDEO */
#ifdef BOOTLOADER
#define IPOD_HW_REVISION (*((unsigned long*)(0x00002084)))
-#else
+#else /* ROM is remapped */
#define IPOD_HW_REVISION (*((unsigned long*)(0x20002084)))
#endif
-#endif
+#endif /* !IPOD_VIDEO */
+#endif /* IPOD_ARCH */
#endif /* HWCOMPAT_H */