forked from len0rd/rockbox
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
This commit is contained in:
parent
dc7342c164
commit
4382d3f5ed
1 changed files with 5 additions and 3 deletions
|
|
@ -29,13 +29,16 @@
|
||||||
|
|
||||||
bool backlight_hw_init()
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void backlight_hw_on(void)
|
void backlight_hw_on(void)
|
||||||
{
|
{
|
||||||
/* GPIO B1 controls backlight */
|
|
||||||
GPIOB_DIR |= (1 << 1);
|
|
||||||
ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x90);
|
ascodec_write_pmu(AS3543_BACKLIGHT, 1, 0x90);
|
||||||
GPIOB_PIN(1) = (1 << 1);
|
GPIOB_PIN(1) = (1 << 1);
|
||||||
#ifdef HAVE_LCD_ENABLE
|
#ifdef HAVE_LCD_ENABLE
|
||||||
|
|
@ -56,4 +59,3 @@ void backlight_hw_brightness(int brightness)
|
||||||
{
|
{
|
||||||
oled_brightness(brightness);
|
oled_brightness(brightness);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue