summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-ipod.c
diff options
context:
space:
mode:
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)
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