summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-06-12 05:56:34 +0000
committerJens Arnold <amiconn@rockbox.org>2008-06-12 05:56:34 +0000
commit538a387cca0b18955c4489258f1d4ffbb4919931 (patch)
treebcceb79562718d17de4ed283559aa519b030e736
parent9de0d813f4697b26e1bfbe8f6f90f20bcc22bae3 (diff)
downloadrockbox-538a387cca0b18955c4489258f1d4ffbb4919931.zip
rockbox-538a387cca0b18955c4489258f1d4ffbb4919931.tar.gz
rockbox-538a387cca0b18955c4489258f1d4ffbb4919931.tar.bz2
rockbox-538a387cca0b18955c4489258f1d4ffbb4919931.tar.xz
Blind-add some code from ipodlinux that hopefully fixes the colour problem on iPod Photo reported on the forums.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17715 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/ipod/lcd-color_nano.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/target/arm/ipod/lcd-color_nano.c b/firmware/target/arm/ipod/lcd-color_nano.c
index 482622b..87e142a 100644
--- a/firmware/target/arm/ipod/lcd-color_nano.c
+++ b/firmware/target/arm/ipod/lcd-color_nano.c
@@ -102,6 +102,17 @@ void lcd_init_device(void)
lcd_type = 1;
}
}
+ if (lcd_type == 0) {
+ lcd_cmd_data(0xef, 0x0);
+ lcd_cmd_data(0x1, 0x0);
+ lcd_cmd_data(0x80, 0x1);
+ lcd_cmd_data(0x10, 0x8);
+ lcd_cmd_data(0x18, 0x6);
+ lcd_cmd_data(0x7e, 0x4);
+ lcd_cmd_data(0x7e, 0x5);
+ lcd_cmd_data(0x7f, 0x1);
+ }
+
#elif CONFIG_LCD == LCD_IPODNANO
/* iPodLinux doesn't appear have any LCD init code for the Nano */
#endif