summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c10
-rw-r--r--firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c b/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c
index b19f8ea65b..23b2c3fc4e 100644
--- a/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c
+++ b/firmware/target/arm/as3525/sansa-e200v2/lcd-e200v2.c
@@ -173,13 +173,13 @@ void lcd_write_data(const fb_data* p_bytes, int count)
173 /* Wait if push fifo is full */ 173 /* Wait if push fifo is full */
174 while ((DBOP_STAT & (1<<6)) != 0); 174 while ((DBOP_STAT & (1<<6)) != 0);
175 } 175 }
176 /* due to the 32bit alignment requirement, we possibly need to do a
177 * 16bit transfer at the end also */
178 if (count > 0)
179 lcd_write_single_data16(*(fb_data*)data);
180
181 /* While push fifo is not empty */ 176 /* While push fifo is not empty */
182 while ((DBOP_STAT & (1<<10)) == 0); 177 while ((DBOP_STAT & (1<<10)) == 0);
178
179 /* due to the 32bit alignment requirement or uneven count,
180 * we possibly need to do a 16bit transfer at the end also */
181 if (count > 0)
182 lcd_write_single_data16(*(fb_data*)data);
183} 183}
184 184
185static void lcd_write_reg(int reg, int value) 185static void lcd_write_reg(int reg, int value)
diff --git a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
index 2b7ce4888d..b99621b3ac 100644
--- a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
+++ b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
@@ -119,13 +119,13 @@ void lcd_write_data(const fb_data* p_bytes, int count)
119 /* Wait if push fifo is full */ 119 /* Wait if push fifo is full */
120 while ((DBOP_STAT & (1<<6)) != 0); 120 while ((DBOP_STAT & (1<<6)) != 0);
121 } 121 }
122 /* due to the 32bit alignment requirement, we possibly need to do a
123 * 16bit transfer at the end also */
124 if (count > 0)
125 lcd_write_single_data16(*(fb_data*)data);
126
127 /* While push fifo is not empty */ 122 /* While push fifo is not empty */
128 while ((DBOP_STAT & (1<<10)) == 0); 123 while ((DBOP_STAT & (1<<10)) == 0);
124
125 /* due to the 32bit alignment requirement or uneven count,
126 * we possibly need to do a 16bit transfer at the end also */
127 if (count > 0)
128 lcd_write_single_data16(*(fb_data*)data);
129} 129}
130 130
131static void lcd_write_reg(int reg, int value) 131static void lcd_write_reg(int reg, int value)