fuze+: correctly handle settings (flip and invert) accross enable
commit5e7bd97e041b16cda86e762b7dc947f86a7d8176
authorAmaury Pouly <amaury.pouly@gmail.com>
Sat, 12 Jan 2013 19:04:20 +0000 (12 19:04 +0000)
committerAmaury Pouly <amaury.pouly@gmail.com>
Sat, 12 Jan 2013 19:04:20 +0000 (12 19:04 +0000)
tree3e308bd25eed13e8ccb2ebb9b1b60401db941262
parent0946a1e0f2c7c6491f87276cfadab5e9492313c6
fuze+: correctly handle settings (flip and invert) accross enable

The flip and invert settings can potentially be reset to their
value accross a disable/enable cycle, so save the value of the
impacted registers and apply it after each enable. Also avoid
poking registers when the lcd is not on.

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