mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-13 07:02:31 -05:00
iPod Video LCD: Avoid white flash when entering sleep mode or shutting off.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29026 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
fadfa211d3
commit
9c5ce4d42e
2 changed files with 4 additions and 1 deletions
|
|
@ -97,7 +97,6 @@ void _backlight_hw_enable(bool on)
|
||||||
{
|
{
|
||||||
GPIO_CLEAR_BITWISE(GPIOD_OUTPUT_VAL, 0x80);
|
GPIO_CLEAR_BITWISE(GPIOD_OUTPUT_VAL, 0x80);
|
||||||
GPIO_CLEAR_BITWISE(GPIOB_OUTPUT_VAL, 0x08);
|
GPIO_CLEAR_BITWISE(GPIOB_OUTPUT_VAL, 0x08);
|
||||||
sleep(HZ/20);
|
|
||||||
}
|
}
|
||||||
enabled = on;
|
enabled = on;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -509,6 +509,10 @@ static void bcm_command(unsigned cmd)
|
||||||
|
|
||||||
static void bcm_powerdown(void)
|
static void bcm_powerdown(void)
|
||||||
{
|
{
|
||||||
|
/* Immediately switch off the backlight to avoid flashing. */
|
||||||
|
_backlight_hw_enable(false);
|
||||||
|
|
||||||
|
/* Not sure what this does. */
|
||||||
bcm_write32(0x10001400, bcm_read32(0x10001400) & ~0xF0);
|
bcm_write32(0x10001400, bcm_read32(0x10001400) & ~0xF0);
|
||||||
|
|
||||||
/* Blanks the LCD and decreases power consumption
|
/* Blanks the LCD and decreases power consumption
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue