From d9177c4c6526f9933bb910088e28eec6058a0dd7 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Wed, 26 Dec 2012 02:41:41 +0100 Subject: fuze+: implement lcd flip and invert Change-Id: I1efcd0c6aa5e586b64c1b48d401648c7a933c4d9 --- firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'firmware/target') diff --git a/firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c b/firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c index 9997deb270..6ede0d3f29 100644 --- a/firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c +++ b/firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c @@ -502,6 +502,22 @@ void lcd_enable(bool enable) } #endif +#ifdef HAVE_LCD_INVERT +void lcd_set_invert_display(bool yesno) +{ + /* same for both kinds */ + lcd_write_reg(0x61, yesno ? 0 : 1); +} +#endif + +#ifdef HAVE_LCD_FLIP +void lcd_set_flip(bool yesno) +{ + /* same for both kinds */ + lcd_write_reg(3, yesno ? 0x1000 : 0x1030); +} +#endif + void lcd_update(void) { lcd_update_rect(0, 0, LCD_WIDTH, LCD_HEIGHT); -- cgit v1.2.3