summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2020-02-28 09:36:54 -0600
committerWilliam Wilgus <me.theuser@yahoo.com>2020-04-17 06:53:33 +0200
commit4382d3f5ed1534b2f79d72cb7cf11dec9e1758c7 (patch)
tree306f8a92ac885121edabda1eba32647f85463388
parentdc7342c1649658c26b5a7a05dfd6385882986514 (diff)
downloadrockbox-4382d3f.tar.gz
rockbox-4382d3f.tar.bz2
rockbox-4382d3f.zip
ClipZip LCD Corruption Backlight fix
User reported LCD screen corruption via forum in 3.14 and 3.15 turning backlight off and back on seems to fix the issue http://forums.rockbox.org/index.php/topic,53192.0.html Change-Id: Id0b34d2f9b77e79ab0ecabace331f0b203184724
-rw-r--r--firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c b/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c
index 9fde68dd8a..925db3a34d 100644
--- a/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c
+++ b/firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c
@@ -29,13 +29,16 @@
bool backlight_hw_init()
{
+ /* GPIO B1 controls backlight */
+ GPIOB_DIR |= (1 << 1);
+ ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x90);
+ GPIOB_PIN(1) = (1 << 1);
+
return true;
}
void backlight_hw_on(void)
{
- /* GPIO B1 controls backlight */
- GPIOB_DIR |= (1 << 1);
ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x90);
GPIOB_PIN(1) = (1 << 1);
#ifdef HAVE_LCD_ENABLE
@@ -56,4 +59,3 @@ void backlight_hw_brightness(int brightness)
{
oled_brightness(brightness);
}
-