summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-ipod.c
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-01-31 01:50:07 +0000
committerDave Chapman <dave@dchapman.com>2006-01-31 01:50:07 +0000
commitf9dac40cf311ef130da190cc71de9148551c9cdc (patch)
tree569f8330060b2f72fa4072ef262ba6dcd00c47b0 /firmware/drivers/lcd-ipod.c
parentea72d05ec6426b65d52fcbcfbbb008351830583f (diff)
downloadrockbox-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/drivers/lcd-ipod.c')
-rw-r--r--firmware/drivers/lcd-ipod.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/firmware/drivers/lcd-ipod.c b/firmware/drivers/lcd-ipod.c
index 5178b1b9b2..0ff22ab9b5 100644
--- a/firmware/drivers/lcd-ipod.c
+++ b/firmware/drivers/lcd-ipod.c
@@ -30,8 +30,6 @@
30#include "system.h" 30#include "system.h"
31 31
32/*** definitions ***/ 32/*** definitions ***/
33#define IPOD_HW_REVISION (*((volatile unsigned long*)0x00002084))
34
35#define IPOD_LCD_BASE 0x70008a0c 33#define IPOD_LCD_BASE 0x70008a0c
36#define IPOD_LCD_BUSY_MASK 0x80000000 34#define IPOD_LCD_BUSY_MASK 0x80000000
37 35
@@ -129,7 +127,7 @@ void lcd_roll(int lines)
129void lcd_init_device(void) 127void lcd_init_device(void)
130{ 128{
131#if CONFIG_LCD == LCD_IPODCOLOR 129#if CONFIG_LCD == LCD_IPODCOLOR
132 if (IPOD_HW_REVISION == 0x60000) { 130 if (ipod_hw_rev == 0x60000) {
133 lcd_type = 0; 131 lcd_type = 0;
134 } else { 132 } else {
135 int gpio_a01, gpio_a04; 133 int gpio_a01, gpio_a04;