diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/hwcompat.h | 12 |
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); | |||
54 | #endif | 54 | #endif |
55 | 55 | ||
56 | #ifdef IPOD_ARCH | 56 | #ifdef IPOD_ARCH |
57 | #ifdef IPOD_VIDEO | ||
58 | #ifdef BOOTLOADER | ||
59 | #define IPOD_HW_REVISION (*((unsigned long*)(0x0000405c))) | ||
60 | #else /* ROM is remapped */ | ||
61 | #define IPOD_HW_REVISION (*((unsigned long*)(0x2000405c))) | ||
62 | #endif | ||
63 | #else /* !IPOD_VIDEO */ | ||
57 | #ifdef BOOTLOADER | 64 | #ifdef BOOTLOADER |
58 | #define IPOD_HW_REVISION (*((unsigned long*)(0x00002084))) | 65 | #define IPOD_HW_REVISION (*((unsigned long*)(0x00002084))) |
59 | #else | 66 | #else /* ROM is remapped */ |
60 | #define IPOD_HW_REVISION (*((unsigned long*)(0x20002084))) | 67 | #define IPOD_HW_REVISION (*((unsigned long*)(0x20002084))) |
61 | #endif | 68 | #endif |
62 | #endif | 69 | #endif /* !IPOD_VIDEO */ |
70 | #endif /* IPOD_ARCH */ | ||
63 | 71 | ||
64 | #endif /* HWCOMPAT_H */ | 72 | #endif /* HWCOMPAT_H */ |