diff options
Diffstat (limited to 'bootloader')
| -rw-r--r-- | bootloader/ipod.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bootloader/ipod.c b/bootloader/ipod.c index d09a227..4de6b61 100644 --- a/bootloader/ipod.c +++ b/bootloader/ipod.c @@ -44,6 +44,10 @@ #define IPOD_HW_REVISION (*((volatile unsigned long*)(0x00002084))) +/* We copy the hardware revision to the last four bytes of SDRAM and then + re-read it after we have re-mapped SDRAM to 0x0 in Rockbox */ +#define TMP_IPOD_HW_REVISION (*((volatile unsigned long*)(0x11fffffc))) + #define BUTTON_LEFT 1 #define BUTTON_MENU 2 #define BUTTON_RIGHT 3 @@ -335,6 +339,8 @@ void* main(void) #endif + TMP_IPOD_HW_REVISION = IPOD_HW_REVISION; + system_init(); kernel_init(); lcd_init(); |