summaryrefslogtreecommitdiff
path: root/firmware/target/arm/ipod/lcd-gray.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/ipod/lcd-gray.c')
-rw-r--r--firmware/target/arm/ipod/lcd-gray.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/ipod/lcd-gray.c b/firmware/target/arm/ipod/lcd-gray.c
index bea1ed46ed..c375d95ea6 100644
--- a/firmware/target/arm/ipod/lcd-gray.c
+++ b/firmware/target/arm/ipod/lcd-gray.c
@@ -84,7 +84,7 @@ static const unsigned char dibits[16] ICONST_ATTR = {
84/* wait for LCD with timeout */ 84/* wait for LCD with timeout */
85static inline void lcd_wait_write(void) 85static inline void lcd_wait_write(void)
86{ 86{
87 while (LCD1_BASE & LCD1_BUSY_MASK); 87 while (LCD1_CONTROL & LCD1_BUSY_MASK);
88} 88}
89 89
90/* send LCD data */ 90/* send LCD data */
@@ -155,7 +155,7 @@ void lcd_init_device(void)
155 power_reg_h = 0x1100; 155 power_reg_h = 0x1100;
156#elif defined IPOD_MINI2G 156#elif defined IPOD_MINI2G
157 lcd_wait_write(); 157 lcd_wait_write();
158 LCD1_BASE = (LCD1_BASE & ~0x1f00000) | 0x1700000; 158 LCD1_CONTROL = (LCD1_CONTROL & ~0x1f00000) | 0x1700000;
159#endif 159#endif
160 160
161 lcd_cmd_and_data(R_POWER_CONTROL, POWER_REG_H | 0xc); 161 lcd_cmd_and_data(R_POWER_CONTROL, POWER_REG_H | 0xc);