zen/zenxfi: correctly implement lcdif errata

Change-Id: Ib2a6000035d70d687025a78bbea416d77af562fe
This commit is contained in:
Amaury Pouly 2014-03-03 18:33:04 +01:00
parent 382d1861af
commit e5ce28ca09
1 changed files with 3 additions and 1 deletions

View File

@ -266,7 +266,9 @@ void lcd_enable(bool enable)
lcd_power(false);
// stop lcdif
BF_CLR(LCDIF_CTRL, DOTCLK_MODE);
// stmp37xx errata: clearing DOTCLK_MODE won't clear RUN
/* stmp37xx errata: clearing DOTCLK_MODE won't clear RUN: wait until
* fifo is empty and then clear manually */
while(!BF_RD(LCDIF_STAT, TXFIFO_EMPTY));
BF_CLR(LCDIF_CTRL, RUN);
// disable spi
spi_enable(false);