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/target/arm/ipod | |
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/target/arm/ipod')
-rw-r--r-- | firmware/target/arm/ipod/lcd-color_nano.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/ipod/lcd-color_nano.c b/firmware/target/arm/ipod/lcd-color_nano.c index 6a29cbe680..c17b99b859 100644 --- a/firmware/target/arm/ipod/lcd-color_nano.c +++ b/firmware/target/arm/ipod/lcd-color_nano.c @@ -28,7 +28,7 @@ #include "lcd.h" #include "kernel.h" #include "system.h" - +#include "hwcompat.h" /* check if number of useconds has past */ static inline bool timer_check(int clock_start, int usecs) @@ -46,7 +46,7 @@ static inline bool timer_check(int clock_start, int usecs) #define LCD_CNTL_VERT_RAM_ADDR_POS 0x45 /*** globals ***/ -static int lcd_type = 1; /* 0 = "old" Color/Photo, 1 = "new" Color & Nano */ +int lcd_type = 1; /* 0 = "old" Color/Photo, 1 = "new" Color & Nano */ static void lcd_wait_write(void) { @@ -109,7 +109,7 @@ void lcd_set_flip(bool yesno) void lcd_init_device(void) { #if CONFIG_LCD == LCD_IPODCOLOR - if (ipod_hw_rev == 0x60000) { + if (IPOD_HW_REVISION == 0x60000) { lcd_type = 0; } else { int gpio_a01, gpio_a04; |