summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-12-26 02:41:41 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2012-12-26 02:41:41 +0100
commitd9177c4c6526f9933bb910088e28eec6058a0dd7 (patch)
tree470974f34bb7d67d65d68dc9d9574caf4d06ac4e /firmware/target
parent38878020d2d9c6756286b5fbcbe49c091df68c96 (diff)
downloadrockbox-d9177c4c6526f9933bb910088e28eec6058a0dd7.tar.gz
rockbox-d9177c4c6526f9933bb910088e28eec6058a0dd7.zip
fuze+: implement lcd flip and invert
Change-Id: I1efcd0c6aa5e586b64c1b48d401648c7a933c4d9
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c16
1 files changed, 16 insertions, 0 deletions
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)
502} 502}
503#endif 503#endif
504 504
505#ifdef HAVE_LCD_INVERT
506void lcd_set_invert_display(bool yesno)
507{
508 /* same for both kinds */
509 lcd_write_reg(0x61, yesno ? 0 : 1);
510}
511#endif
512
513#ifdef HAVE_LCD_FLIP
514void lcd_set_flip(bool yesno)
515{
516 /* same for both kinds */
517 lcd_write_reg(3, yesno ? 0x1000 : 0x1030);
518}
519#endif
520
505void lcd_update(void) 521void lcd_update(void)
506{ 522{
507 lcd_update_rect(0, 0, LCD_WIDTH, LCD_HEIGHT); 523 lcd_update_rect(0, 0, LCD_WIDTH, LCD_HEIGHT);