summaryrefslogtreecommitdiffstats
path: root/firmware/drivers/lcd-ipod.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-04-08 09:08:38 +0000
committerJens Arnold <amiconn@rockbox.org>2006-04-08 09:08:38 +0000
commit4ac150e8d3549eb9c06fba71aca88337b59bf7eb (patch)
tree047d2991af1660aaf90b3f830dfbfb7e82db1a57 /firmware/drivers/lcd-ipod.c
parent37e386f3d81ebe7ad4f32e919d529391f8f4ced0 (diff)
downloadrockbox-4ac150e8d3549eb9c06fba71aca88337b59bf7eb.tar.gz
rockbox-4ac150e8d3549eb9c06fba71aca88337b59bf7eb.zip
Get rid of the redundant APPLE_* macros. * Fix wrong comments in lcd-ipod.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9561 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/lcd-ipod.c')
-rw-r--r--firmware/drivers/lcd-ipod.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/lcd-ipod.c b/firmware/drivers/lcd-ipod.c
index 74bda3bfb9..67f9e7c23f 100644
--- a/firmware/drivers/lcd-ipod.c
+++ b/firmware/drivers/lcd-ipod.c
@@ -134,7 +134,7 @@ void lcd_init_device(void)
lcd_set_flip(false);
lcd_cmd_and_data(R_ENTRY_MODE, 0x0000);
-#ifdef APPLE_IPOD4G
+#ifdef IPOD_4G
outl(inl(0x6000d004) | 0x4, 0x6000d004); /* B02 enable */
outl(inl(0x6000d004) | 0x8, 0x6000d004); /* B03 enable */
outl(inl(0x70000084) | 0x2000000, 0x70000084); /* D01 enable */
@@ -184,12 +184,12 @@ void lcd_set_flip(bool yesno)
if (yesno) {
/* 168x128, inverse SEG & COM order */
lcd_cmd_and_data(R_DRV_OUTPUT_CONTROL, 0x030f);
- lcd_cmd_and_data(R_1ST_SCR_DRV_POS, 0x8304); /* 0..127 */
+ lcd_cmd_and_data(R_1ST_SCR_DRV_POS, 0x8304); /* 4..131 */
addr_offset = (4 << 5) | (20 - 1);
} else {
/* 168x128 */
lcd_cmd_and_data(R_DRV_OUTPUT_CONTROL, 0x000f);
- lcd_cmd_and_data(R_1ST_SCR_DRV_POS, 0x7f00); /* 4..131 */
+ lcd_cmd_and_data(R_1ST_SCR_DRV_POS, 0x7f00); /* 0..127 */
addr_offset = 20;
}
#endif