summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/target/arm/rk27xx/lcdif-rk27xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/rk27xx/lcdif-rk27xx.c b/firmware/target/arm/rk27xx/lcdif-rk27xx.c
index 01b19603fd..d5847392a3 100644
--- a/firmware/target/arm/rk27xx/lcdif-rk27xx.c
+++ b/firmware/target/arm/rk27xx/lcdif-rk27xx.c
@@ -113,7 +113,7 @@ static void lcdctrl_init(void)
* on second lcd_update call
*/
for (i=0; i<2048; i++)
- *((uint32_t *)LCD_BUFF + i) = 0;
+ *((volatile uint32_t *)LCD_BUFF + i) = 0;
/* Setup buffered writes to lcd controler */
MCU_CTRL = MCU_CTRL_RS_HIGH|MCU_CTRL_BUFF_WRITE|MCU_CTRL_BUFF_START;