diff options
Diffstat (limited to 'firmware/target/arm/as3525/sansa-e200v2')
-rw-r--r-- | firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c b/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c index e25494dddd..b19f8ea65b 100644 --- a/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c +++ b/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c | |||
@@ -170,16 +170,16 @@ void lcd_write_data(const fb_data* p_bytes, int count) | |||
170 | DBOP_DOUT32 = *data++; | 170 | DBOP_DOUT32 = *data++; |
171 | count -= 2; | 171 | count -= 2; |
172 | 172 | ||
173 | /* TODO: We should normally fill the fifo until it's full | 173 | /* Wait if push fifo is full */ |
174 | * instead of waiting after each word, | 174 | while ((DBOP_STAT & (1<<6)) != 0); |
175 | * but that causes blue lines on the display */ | ||
176 | while ((DBOP_STAT & (1<<10)) == 0); | ||
177 | } | 175 | } |
178 | |||
179 | /* due to the 32bit alignment requirement, we possibly need to do a | 176 | /* due to the 32bit alignment requirement, we possibly need to do a |
180 | * 16bit transfer at the end also */ | 177 | * 16bit transfer at the end also */ |
181 | if (count > 0) | 178 | if (count > 0) |
182 | lcd_write_single_data16(*(fb_data*)data); | 179 | lcd_write_single_data16(*(fb_data*)data); |
180 | |||
181 | /* While push fifo is not empty */ | ||
182 | while ((DBOP_STAT & (1<<10)) == 0); | ||
183 | } | 183 | } |
184 | 184 | ||
185 | static void lcd_write_reg(int reg, int value) | 185 | static void lcd_write_reg(int reg, int value) |