diff options
author | Jens Arnold <amiconn@rockbox.org> | 2006-04-08 09:08:38 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2006-04-08 09:08:38 +0000 |
commit | 4ac150e8d3549eb9c06fba71aca88337b59bf7eb (patch) | |
tree | 047d2991af1660aaf90b3f830dfbfb7e82db1a57 /firmware/drivers/lcd-ipod.c | |
parent | 37e386f3d81ebe7ad4f32e919d529391f8f4ced0 (diff) | |
download | rockbox-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.c | 6 |
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) | |||
134 | lcd_set_flip(false); | 134 | lcd_set_flip(false); |
135 | lcd_cmd_and_data(R_ENTRY_MODE, 0x0000); | 135 | lcd_cmd_and_data(R_ENTRY_MODE, 0x0000); |
136 | 136 | ||
137 | #ifdef APPLE_IPOD4G | 137 | #ifdef IPOD_4G |
138 | outl(inl(0x6000d004) | 0x4, 0x6000d004); /* B02 enable */ | 138 | outl(inl(0x6000d004) | 0x4, 0x6000d004); /* B02 enable */ |
139 | outl(inl(0x6000d004) | 0x8, 0x6000d004); /* B03 enable */ | 139 | outl(inl(0x6000d004) | 0x8, 0x6000d004); /* B03 enable */ |
140 | outl(inl(0x70000084) | 0x2000000, 0x70000084); /* D01 enable */ | 140 | outl(inl(0x70000084) | 0x2000000, 0x70000084); /* D01 enable */ |
@@ -184,12 +184,12 @@ void lcd_set_flip(bool yesno) | |||
184 | if (yesno) { | 184 | if (yesno) { |
185 | /* 168x128, inverse SEG & COM order */ | 185 | /* 168x128, inverse SEG & COM order */ |
186 | lcd_cmd_and_data(R_DRV_OUTPUT_CONTROL, 0x030f); | 186 | lcd_cmd_and_data(R_DRV_OUTPUT_CONTROL, 0x030f); |
187 | lcd_cmd_and_data(R_1ST_SCR_DRV_POS, 0x8304); /* 0..127 */ | 187 | lcd_cmd_and_data(R_1ST_SCR_DRV_POS, 0x8304); /* 4..131 */ |
188 | addr_offset = (4 << 5) | (20 - 1); | 188 | addr_offset = (4 << 5) | (20 - 1); |
189 | } else { | 189 | } else { |
190 | /* 168x128 */ | 190 | /* 168x128 */ |
191 | lcd_cmd_and_data(R_DRV_OUTPUT_CONTROL, 0x000f); | 191 | lcd_cmd_and_data(R_DRV_OUTPUT_CONTROL, 0x000f); |
192 | lcd_cmd_and_data(R_1ST_SCR_DRV_POS, 0x7f00); /* 4..131 */ | 192 | lcd_cmd_and_data(R_1ST_SCR_DRV_POS, 0x7f00); /* 0..127 */ |
193 | addr_offset = 20; | 193 | addr_offset = 20; |
194 | } | 194 | } |
195 | #endif | 195 | #endif |