diff options
author | Dave Chapman <dave@dchapman.com> | 2006-01-31 01:50:07 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-01-31 01:50:07 +0000 |
commit | f9dac40cf311ef130da190cc71de9148551c9cdc (patch) | |
tree | 569f8330060b2f72fa4072ef262ba6dcd00c47b0 /firmware/system.c | |
parent | ea72d05ec6426b65d52fcbcfbbb008351830583f (diff) | |
download | rockbox-f9dac40cf311ef130da190cc71de9148551c9cdc.tar.gz rockbox-f9dac40cf311ef130da190cc71de9148551c9cdc.zip |
iPod: Fix the detection of lcd type for the iPod Photo - this should fix problems with that LCD. Affected users also need to install a new bootloader - available from the iPod Installation wiki page.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8499 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/system.c')
-rw-r--r-- | firmware/system.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/system.c b/firmware/system.c index bc9f9de973..1ef5fda290 100644 --- a/firmware/system.c +++ b/firmware/system.c | |||
@@ -1140,6 +1140,8 @@ void UIE(unsigned int pc, unsigned int num) | |||
1140 | extern void TIMER1(void); | 1140 | extern void TIMER1(void); |
1141 | extern void ipod_4g_button_int(void); | 1141 | extern void ipod_4g_button_int(void); |
1142 | 1142 | ||
1143 | unsigned int ipod_hw_rev; | ||
1144 | |||
1143 | void irq(void) | 1145 | void irq(void) |
1144 | { | 1146 | { |
1145 | if (CPU_INT_STAT & TIMER1_MASK) | 1147 | if (CPU_INT_STAT & TIMER1_MASK) |
@@ -1198,6 +1200,10 @@ static void ipod_set_cpu_speed(void) | |||
1198 | void system_init(void) | 1200 | void system_init(void) |
1199 | { | 1201 | { |
1200 | #ifndef BOOTLOADER | 1202 | #ifndef BOOTLOADER |
1203 | /* The hw revision is written to the last 4 bytes of SDRAM by the | ||
1204 | bootloader - we save it before Rockbox overwrites it. */ | ||
1205 | ipod_hw_rev = (*((volatile unsigned long*)(0x01fffffc))); | ||
1206 | |||
1201 | /* disable all irqs */ | 1207 | /* disable all irqs */ |
1202 | outl(-1, 0x60001138); | 1208 | outl(-1, 0x60001138); |
1203 | outl(-1, 0x60001128); | 1209 | outl(-1, 0x60001128); |