summaryrefslogtreecommitdiffstats
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,
void lcd_update(void) ICODE_ATTR;
void lcd_update(void)
{
- int y;
- /* Copy display bitmap to hardware */
- for (y = 0; y < LCD_FBHEIGHT; y++)
- {
- lcd_write_command_ex(LCD_CNTL_PAGE, y, -1);
- lcd_write_command_ex(LCD_CNTL_COLUMN, 0, -1);
+ /* Setup initial PAGE and COLUMN address
+ * the addressing circuit will take care of the rest
+ */
+ lcd_write_command_ex(LCD_CNTL_PAGE, 0, -1);
+ lcd_write_command_ex(LCD_CNTL_COLUMN, 0, -1);
+ lcd_write_command(LCD_CNTL_DATA_WRITE);
- lcd_write_command(LCD_CNTL_DATA_WRITE);
- lcd_write_data (lcd_framebuffer[y], LCD_WIDTH);
- }
+ /* Copy display bitmap to hardware */
+ lcd_write_data (&lcd_framebuffer[0][0], LCD_WIDTH*LCD_FBHEIGHT);
}
/* Update a fraction of the display. */