summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/ipod
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-01-10 20:56:19 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-01-10 20:56:19 +0000
commit9c5ce4d42e69b753e0c69abe53fd68fd39e59e00 (patch)
tree33ae563587b0a61cbdca10da4758816797a69a06 /firmware/target/arm/ipod
parentfadfa211d3ba4de8b86982a113ea85d0f300413c (diff)
downloadrockbox-9c5ce4d42e69b753e0c69abe53fd68fd39e59e00.tar.gz
rockbox-9c5ce4d42e69b753e0c69abe53fd68fd39e59e00.tar.bz2
rockbox-9c5ce4d42e69b753e0c69abe53fd68fd39e59e00.zip
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
Diffstat (limited to 'firmware/target/arm/ipod')
-rw-r--r--firmware/target/arm/ipod/backlight-nano_video.c1
-rw-r--r--firmware/target/arm/ipod/video/lcd-video.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/firmware/target/arm/ipod/backlight-nano_video.c b/firmware/target/arm/ipod/backlight-nano_video.c
index 2f56f94225..11893a591d 100644
--- a/firmware/target/arm/ipod/backlight-nano_video.c
+++ b/firmware/target/arm/ipod/backlight-nano_video.c
@@ -97,7 +97,6 @@ void _backlight_hw_enable(bool on)
{
GPIO_CLEAR_BITWISE(GPIOD_OUTPUT_VAL, 0x80);
GPIO_CLEAR_BITWISE(GPIOB_OUTPUT_VAL, 0x08);
- sleep(HZ/20);
}
enabled = on;
}
diff --git a/firmware/target/arm/ipod/video/lcd-video.c b/firmware/target/arm/ipod/video/lcd-video.c
index 74d627730f..944f2c4236 100644
--- a/firmware/target/arm/ipod/video/lcd-video.c
+++ b/firmware/target/arm/ipod/video/lcd-video.c
@@ -509,6 +509,10 @@ static void bcm_command(unsigned cmd)
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);
/* Blanks the LCD and decreases power consumption