fuze+: make sure lcd is ready before chaning a register
commit38878020d2d9c6756286b5fbcbe49c091df68c96
authorAmaury Pouly <amaury.pouly@gmail.com>
Wed, 26 Dec 2012 01:39:39 +0000 (26 02:39 +0100)
committerAmaury Pouly <amaury.pouly@gmail.com>
Wed, 26 Dec 2012 01:39:39 +0000 (26 02:39 +0100)
tree3d3ba04b698e2ed3250d6ca8f317398ab89b4055
parent7fddc2327b8cee7ad8ce1a6d53fe66cde94a0edf
fuze+: make sure lcd is ready before chaning a register

The lcd driver does not wait for the refresh to be done to return
from lcd_update(). This means that changing a register is unsafe
if done in the middle of the redraw. This could happen when
disabling the lcd for example. Make sure it doesn't happen by
waiting for the lcdif to be ready.

Change-Id: I43ec62a637dd61c3b2a3a6e131c1a9e8035524b1
firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c