diff options
-rw-r--r-- | firmware/target/arm/ipod/backlight-nano_video.c | 1 | ||||
-rw-r--r-- | firmware/target/arm/ipod/video/lcd-video.c | 4 |
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) | |||
97 | { | 97 | { |
98 | GPIO_CLEAR_BITWISE(GPIOD_OUTPUT_VAL, 0x80); | 98 | GPIO_CLEAR_BITWISE(GPIOD_OUTPUT_VAL, 0x80); |
99 | GPIO_CLEAR_BITWISE(GPIOB_OUTPUT_VAL, 0x08); | 99 | GPIO_CLEAR_BITWISE(GPIOB_OUTPUT_VAL, 0x08); |
100 | sleep(HZ/20); | ||
101 | } | 100 | } |
102 | enabled = on; | 101 | enabled = on; |
103 | } | 102 | } |
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) | |||
509 | 509 | ||
510 | static void bcm_powerdown(void) | 510 | static void bcm_powerdown(void) |
511 | { | 511 | { |
512 | /* Immediately switch off the backlight to avoid flashing. */ | ||
513 | _backlight_hw_enable(false); | ||
514 | |||
515 | /* Not sure what this does. */ | ||
512 | bcm_write32(0x10001400, bcm_read32(0x10001400) & ~0xF0); | 516 | bcm_write32(0x10001400, bcm_read32(0x10001400) & ~0xF0); |
513 | 517 | ||
514 | /* Blanks the LCD and decreases power consumption | 518 | /* Blanks the LCD and decreases power consumption |