From f9dac40cf311ef130da190cc71de9148551c9cdc Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Tue, 31 Jan 2006 01:50:07 +0000 Subject: 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 --- firmware/system.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'firmware/system.c') 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) extern void TIMER1(void); extern void ipod_4g_button_int(void); +unsigned int ipod_hw_rev; + void irq(void) { if (CPU_INT_STAT & TIMER1_MASK) @@ -1198,6 +1200,10 @@ static void ipod_set_cpu_speed(void) void system_init(void) { #ifndef BOOTLOADER + /* The hw revision is written to the last 4 bytes of SDRAM by the + bootloader - we save it before Rockbox overwrites it. */ + ipod_hw_rev = (*((volatile unsigned long*)(0x01fffffc))); + /* disable all irqs */ outl(-1, 0x60001138); outl(-1, 0x60001128); -- cgit v1.2.3