From ccf4ce98fd6f5fd76c392774181cad8b051a4f01 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Thu, 17 Jul 2008 10:09:12 +0000 Subject: [PATCH] Fix the iPod Photo/Color "type 0 LCD" bug introduced in r17715 by correctly initialising the LCD to accept big-endian data (the same format as the "type 1" LCDs). Also some tab policing. Closes FS#9122 and FS#9097 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18079 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/ipod/lcd-color_nano.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/firmware/target/arm/ipod/lcd-color_nano.c b/firmware/target/arm/ipod/lcd-color_nano.c index 4bb900a301..7d004cb0f2 100644 --- a/firmware/target/arm/ipod/lcd-color_nano.c +++ b/firmware/target/arm/ipod/lcd-color_nano.c @@ -104,16 +104,16 @@ 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); - } + if (lcd_type == 0) { + lcd_cmd_data(0xef, 0x0); + lcd_cmd_data(0x1, 0x0); + lcd_cmd_data(0x80, 0x1); + lcd_cmd_data(0x10, 0xc); + 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 */