diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-12-20 23:15:27 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-12-20 23:15:27 +0000 |
commit | 67f00224fb8bbf92ffe952d163f35ed437b698d5 (patch) | |
tree | 1ecf9d36fdbc8830b98a77e5157d96be43196bb8 /firmware/backlight.c | |
parent | ca1a1ab141f745660ebceae9d70b827314ea29b8 (diff) | |
download | rockbox-67f00224fb8bbf92ffe952d163f35ed437b698d5.tar.gz rockbox-67f00224fb8bbf92ffe952d163f35ed437b698d5.zip |
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
Diffstat (limited to 'firmware/backlight.c')
-rw-r--r-- | firmware/backlight.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ | |||
30 | #include "timer.h" | 30 | #include "timer.h" |
31 | #include "backlight.h" | 31 | #include "backlight.h" |
32 | 32 | ||
33 | #if CONFIG_BACKLIGHT == BL_IRIVER_H300 | ||
34 | #include "lcd.h" /* for lcd_enable() */ | ||
35 | #endif | ||
33 | #ifdef HAVE_REMOTE_LCD | 36 | #ifdef HAVE_REMOTE_LCD |
34 | #include "lcd-remote.h" | 37 | #include "lcd-remote.h" |
35 | #endif | 38 | #endif |
@@ -211,6 +214,7 @@ static void __backlight_on(void) | |||
211 | and_l(~0x00020000, &GPIO1_OUT); | 214 | and_l(~0x00020000, &GPIO1_OUT); |
212 | } | 215 | } |
213 | #elif CONFIG_BACKLIGHT == BL_IRIVER_H300 | 216 | #elif CONFIG_BACKLIGHT == BL_IRIVER_H300 |
217 | lcd_enable(true); | ||
214 | or_l(0x00020000, &GPIO1_OUT); | 218 | or_l(0x00020000, &GPIO1_OUT); |
215 | #elif CONFIG_BACKLIGHT == BL_RTC | 219 | #elif CONFIG_BACKLIGHT == BL_RTC |
216 | /* Enable square wave */ | 220 | /* Enable square wave */ |
@@ -251,6 +255,7 @@ static void __backlight_off(void) | |||
251 | } | 255 | } |
252 | #elif CONFIG_BACKLIGHT == BL_IRIVER_H300 | 256 | #elif CONFIG_BACKLIGHT == BL_IRIVER_H300 |
253 | and_l(~0x00020000, &GPIO1_OUT); | 257 | and_l(~0x00020000, &GPIO1_OUT); |
258 | lcd_enable(false); | ||
254 | #elif CONFIG_BACKLIGHT == BL_RTC | 259 | #elif CONFIG_BACKLIGHT == BL_RTC |
255 | /* Disable square wave */ | 260 | /* Disable square wave */ |
256 | rtc_write(0x0a, rtc_read(0x0a) & ~0x40); | 261 | rtc_write(0x0a, rtc_read(0x0a) & ~0x40); |