From 67f00224fb8bbf92ffe952d163f35ed437b698d5 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 20 Dec 2005 23:15:27 +0000 Subject: patch #1385256 by Hristo Kovachev - Turn off H300 LCD while backlight is off git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8268 a1c6a512-1295-4272-9138-f99709370657 --- firmware/backlight.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'firmware/backlight.c') diff --git a/firmware/backlight.c b/firmware/backlight.c index 491d2b5cc7..291c5da8e7 100644 --- a/firmware/backlight.c +++ b/firmware/backlight.c @@ -30,6 +30,9 @@ #include "timer.h" #include "backlight.h" +#if CONFIG_BACKLIGHT == BL_IRIVER_H300 +#include "lcd.h" /* for lcd_enable() */ +#endif #ifdef HAVE_REMOTE_LCD #include "lcd-remote.h" #endif @@ -211,6 +214,7 @@ static void __backlight_on(void) and_l(~0x00020000, &GPIO1_OUT); } #elif CONFIG_BACKLIGHT == BL_IRIVER_H300 + lcd_enable(true); or_l(0x00020000, &GPIO1_OUT); #elif CONFIG_BACKLIGHT == BL_RTC /* Enable square wave */ @@ -251,6 +255,7 @@ static void __backlight_off(void) } #elif CONFIG_BACKLIGHT == BL_IRIVER_H300 and_l(~0x00020000, &GPIO1_OUT); + lcd_enable(false); #elif CONFIG_BACKLIGHT == BL_RTC /* Disable square wave */ rtc_write(0x0a, rtc_read(0x0a) & ~0x40); -- cgit v1.2.3