diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2012-12-26 02:41:41 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2012-12-26 02:41:41 +0100 |
commit | d9177c4c6526f9933bb910088e28eec6058a0dd7 (patch) | |
tree | 470974f34bb7d67d65d68dc9d9574caf4d06ac4e /firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c | |
parent | 38878020d2d9c6756286b5fbcbe49c091df68c96 (diff) | |
download | rockbox-d9177c4c6526f9933bb910088e28eec6058a0dd7.tar.gz rockbox-d9177c4c6526f9933bb910088e28eec6058a0dd7.zip |
fuze+: implement lcd flip and invert
Change-Id: I1efcd0c6aa5e586b64c1b48d401648c7a933c4d9
Diffstat (limited to 'firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c')
-rw-r--r-- | firmware/target/arm/imx233/sansa-fuzeplus/lcd-fuzeplus.c | 16 |
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 | ||
506 | void 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 | ||
514 | void lcd_set_flip(bool yesno) | ||
515 | { | ||
516 | /* same for both kinds */ | ||
517 | lcd_write_reg(3, yesno ? 0x1000 : 0x1030); | ||
518 | } | ||
519 | #endif | ||
520 | |||
505 | void lcd_update(void) | 521 | void 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); |