From 4382d3f5ed1534b2f79d72cb7cf11dec9e1758c7 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Fri, 28 Feb 2020 09:36:54 -0600 Subject: 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 --- firmware/target/arm/as3525/sansa-clipzip/backlight-clipzip.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'firmware/target') 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); } - -- cgit v1.2.3