diff options
author | William Wilgus <me.theuser@yahoo.com> | 2020-02-28 09:36:54 -0600 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2020-04-17 06:53:33 +0200 |
commit | 4382d3f5ed1534b2f79d72cb7cf11dec9e1758c7 (patch) | |
tree | 306f8a92ac885121edabda1eba32647f85463388 | |
parent | dc7342c1649658c26b5a7a05dfd6385882986514 (diff) | |
download | rockbox-4382d3f5ed1534b2f79d72cb7cf11dec9e1758c7.tar.gz rockbox-4382d3f5ed1534b2f79d72cb7cf11dec9e1758c7.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.c | 8 |
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 @@ | |||
29 | 29 | ||
30 | bool backlight_hw_init() | 30 | bool backlight_hw_init() |
31 | { | 31 | { |
32 | /* GPIO B1 controls backlight */ | ||
33 | GPIOB_DIR |= (1 << 1); | ||
34 | ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x90); | ||
35 | GPIOB_PIN(1) = (1 << 1); | ||
36 | |||
32 | return true; | 37 | return true; |
33 | } | 38 | } |
34 | 39 | ||
35 | void backlight_hw_on(void) | 40 | void backlight_hw_on(void) |
36 | { | 41 | { |
37 | /* GPIO B1 controls backlight */ | ||
38 | GPIOB_DIR |= (1 << 1); | ||
39 | ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x90); | 42 | ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x90); |
40 | GPIOB_PIN(1) = (1 << 1); | 43 | GPIOB_PIN(1) = (1 << 1); |
41 | #ifdef HAVE_LCD_ENABLE | 44 | #ifdef HAVE_LCD_ENABLE |
@@ -56,4 +59,3 @@ void backlight_hw_brightness(int brightness) | |||
56 | { | 59 | { |
57 | oled_brightness(brightness); | 60 | oled_brightness(brightness); |
58 | } | 61 | } |
59 | |||