diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2014-03-03 18:33:04 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2014-03-03 18:33:04 +0100 |
commit | e5ce28ca094b719078e1783d0a9d5acc08b48d26 (patch) | |
tree | 4e9cb5b032a9563de9051b7e585c8ae7e90b2709 | |
parent | 382d1861af12741af4ff235b9d18f179c0adc4c5 (diff) | |
download | rockbox-e5ce28ca094b719078e1783d0a9d5acc08b48d26.tar.gz rockbox-e5ce28ca094b719078e1783d0a9d5acc08b48d26.zip |
zen/zenxfi: correctly implement lcdif errata
Change-Id: Ib2a6000035d70d687025a78bbea416d77af562fe
-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); |