1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Dave Chapman 2008-07-17 10:09:12 +00:00
parent ee27a4fb7c
commit ccf4ce98fd

View file

@ -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 */