summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-fuze
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/sansa-fuze')
-rw-r--r--firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
index fc0fdaae10..2b7ce4888d 100644
--- a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
+++ b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
@@ -116,16 +116,16 @@ void lcd_write_data(const fb_data* p_bytes, int count)
116 DBOP_DOUT32 = *data++; 116 DBOP_DOUT32 = *data++;
117 count -= 2; 117 count -= 2;
118 118
119 /* Wait for fifo to empty */ 119 /* Wait if push fifo is full */
120 /* TODO: We should normally fill the fifo until it's full 120 while ((DBOP_STAT & (1<<6)) != 0);
121 * instead of waiting after each word,
122 * but that causes blue lines on the display */
123 while ((DBOP_STAT & (1<<10)) == 0);
124 } 121 }
125 /* due to the 32bit alignment requirement, we possibly need to do a 122 /* due to the 32bit alignment requirement, we possibly need to do a
126 * 16bit transfer at the end also */ 123 * 16bit transfer at the end also */
127 if (count > 0) 124 if (count > 0)
128 lcd_write_single_data16(*(fb_data*)data); 125 lcd_write_single_data16(*(fb_data*)data);
126
127 /* While push fifo is not empty */
128 while ((DBOP_STAT & (1<<10)) == 0);
129} 129}
130 130
131static void lcd_write_reg(int reg, int value) 131static void lcd_write_reg(int reg, int value)