diff options
| -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 b75ea81..52232c9 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 */ |