diff options
-rw-r--r-- | firmware/target/arm/imx233/creative-zen/lcd-zen.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/creative-zen/lcd-zen.c b/firmware/target/arm/imx233/creative-zen/lcd-zen.c index 4f459937f0..e9644278f1 100644 --- a/firmware/target/arm/imx233/creative-zen/lcd-zen.c +++ b/firmware/target/arm/imx233/creative-zen/lcd-zen.c | |||
@@ -266,7 +266,9 @@ void lcd_enable(bool enable) | |||
266 | lcd_power(false); | 266 | lcd_power(false); |
267 | // stop lcdif | 267 | // stop lcdif |
268 | BF_CLR(LCDIF_CTRL, DOTCLK_MODE); | 268 | BF_CLR(LCDIF_CTRL, DOTCLK_MODE); |
269 | // stmp37xx errata: clearing DOTCLK_MODE won't clear RUN | 269 | /* stmp37xx errata: clearing DOTCLK_MODE won't clear RUN: wait until |
270 | * fifo is empty and then clear manually */ | ||
271 | while(!BF_RD(LCDIF_STAT, TXFIFO_EMPTY)); | ||
270 | BF_CLR(LCDIF_CTRL, RUN); | 272 | BF_CLR(LCDIF_CTRL, RUN); |
271 | // disable spi | 273 | // disable spi |
272 | spi_enable(false); | 274 | spi_enable(false); |