summaryrefslogtreecommitdiff
path: root/firmware/backlight.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/backlight.c')
-rw-r--r--firmware/backlight.c5
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);