summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2010-12-19 19:06:55 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2010-12-19 19:06:55 +0000
commit8205e54abdb7e3760af6efb6881bbd3254634035 (patch)
treee3a3e6f17079dc41096c58e2a515080cdf0516b5
parenta6d7a67080ea360b6dd1ba4a8f32234f076125cf (diff)
downloadrockbox-8205e54abdb7e3760af6efb6881bbd3254634035.tar.gz
rockbox-8205e54abdb7e3760af6efb6881bbd3254634035.zip
iPod nano2g ILI type LCD displays need big endian configuration for the LCD interface.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28858 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/s5l8700/ipodnano2g/lcd-nano2g.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/target/arm/s5l8700/ipodnano2g/lcd-nano2g.c b/firmware/target/arm/s5l8700/ipodnano2g/lcd-nano2g.c
index e4193d1efa..7b117596b0 100644
--- a/firmware/target/arm/s5l8700/ipodnano2g/lcd-nano2g.c
+++ b/firmware/target/arm/s5l8700/ipodnano2g/lcd-nano2g.c
@@ -314,13 +314,13 @@ void lcd_init_device(void)
314 PCON14 &= ~0xf0; /* Set pin 1 to input */ 314 PCON14 &= ~0xf0; /* Set pin 1 to input */
315 315
316 if (((PDAT13 & 1) == 0) && ((PDAT14 & 2) == 2)) { 316 if (((PDAT13 & 1) == 0) && ((PDAT14 & 2) == 2)) {
317 lcd_type = 0; /* Similar to ILI9320 - aka "type 2" */ 317 lcd_type = 0; /* Similar to ILI9320 - aka "type 2" */
318 LCD_CON |= 0x180; /* use 16 bit bus width, big endian */
318 } else { 319 } else {
319 lcd_type = 1; /* Similar to LDS176 - aka "type 7" */ 320 lcd_type = 1; /* Similar to LDS176 - aka "type 7" */
320 LCD_PHTIME = 0x22; /* Set Phase Time reg (relevant for LCD IF speed) */ 321 LCD_CON |= 0x100; /* use 16 bit bus width, little endian */
322 LCD_PHTIME = 0x022; /* Set Phase Time reg (relevant for LCD IF speed) */
321 } 323 }
322
323 LCD_CON |= 0x100; /* use 16 bit bus width, little endian */
324 324
325 lcd_ispowered = true; 325 lcd_ispowered = true;
326} 326}