summaryrefslogtreecommitdiffstats
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 @@
#include "system.h"
/*** definitions ***/
-#define IPOD_HW_REVISION (*((volatile unsigned long*)0x00002084))
-
#define IPOD_LCD_BASE 0x70008a0c
#define IPOD_LCD_BUSY_MASK 0x80000000
@@ -129,7 +127,7 @@ void lcd_roll(int lines)
void lcd_init_device(void)
{
#if CONFIG_LCD == LCD_IPODCOLOR
- if (IPOD_HW_REVISION == 0x60000) {
+ if (ipod_hw_rev == 0x60000) {
lcd_type = 0;
} else {
int gpio_a01, gpio_a04;