diff options
author | Dave Chapman <dave@dchapman.com> | 2007-07-25 13:12:38 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2007-07-25 13:12:38 +0000 |
commit | ebc076bc15d6501674b9db772557a0eadfb4a5e2 (patch) | |
tree | a49e4460708d78c76ea25669afded36c3c631f04 /firmware/export/hwcompat.h | |
parent | ed095235d44a9427e76f05f9f6d35325ddf1d4d9 (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.h | 8 |
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 */ |