summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/target/coldfire/mpio/hd300/lcd-hd300.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/firmware/target/coldfire/mpio/hd300/lcd-hd300.c b/firmware/target/coldfire/mpio/hd300/lcd-hd300.c
index 10ee59571e..31087a5d43 100644
--- a/firmware/target/coldfire/mpio/hd300/lcd-hd300.c
+++ b/firmware/target/coldfire/mpio/hd300/lcd-hd300.c
@@ -202,17 +202,16 @@ void lcd_blit_grey_phase(unsigned char *values, unsigned char *phases,
202void lcd_update(void) ICODE_ATTR; 202void lcd_update(void) ICODE_ATTR;
203void lcd_update(void) 203void lcd_update(void)
204{ 204{
205 int y;
206 205
207 /* Copy display bitmap to hardware */ 206 /* Setup initial PAGE and COLUMN address
208 for (y = 0; y < LCD_FBHEIGHT; y++) 207 * the addressing circuit will take care of the rest
209 { 208 */
210 lcd_write_command_ex(LCD_CNTL_PAGE, y, -1); 209 lcd_write_command_ex(LCD_CNTL_PAGE, 0, -1);
211 lcd_write_command_ex(LCD_CNTL_COLUMN, 0, -1); 210 lcd_write_command_ex(LCD_CNTL_COLUMN, 0, -1);
211 lcd_write_command(LCD_CNTL_DATA_WRITE);
212 212
213 lcd_write_command(LCD_CNTL_DATA_WRITE); 213 /* Copy display bitmap to hardware */
214 lcd_write_data (lcd_framebuffer[y], LCD_WIDTH); 214 lcd_write_data (&lcd_framebuffer[0][0], LCD_WIDTH*LCD_FBHEIGHT);
215 }
216} 215}
217 216
218/* Update a fraction of the display. */ 217/* Update a fraction of the display. */