summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/backlight.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 1d9e4b54c4..97c9175a4b 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -34,7 +34,7 @@
34#include "pcf50606.h" /* iRiver brightness */ 34#include "pcf50606.h" /* iRiver brightness */
35#endif 35#endif
36 36
37#if (CONFIG_BACKLIGHT == BL_IRIVER_H300) || (CONFIG_BACKLIGHT == BL_IPOD3G) 37#if (CONFIG_BACKLIGHT == BL_IRIVER_H300)
38#include "lcd.h" /* for lcd_enable() */ 38#include "lcd.h" /* for lcd_enable() */
39#endif 39#endif
40#ifdef HAVE_REMOTE_LCD 40#ifdef HAVE_REMOTE_LCD
@@ -91,7 +91,7 @@ static inline void __backlight_on(void)
91 /* set port L07 on */ 91 /* set port L07 on */
92 outl(((0x100 | 1) << 7), 0x6000d12c); 92 outl(((0x100 | 1) << 7), 0x6000d12c);
93#elif CONFIG_BACKLIGHT==BL_IPOD3G 93#elif CONFIG_BACKLIGHT==BL_IPOD3G
94 lcd_enable(true); 94 outl(inl(0xc0001000) | 0x02, 0xc0001000);
95#elif CONFIG_BACKLIGHT==BL_IRIVER_IFP7XX 95#elif CONFIG_BACKLIGHT==BL_IRIVER_IFP7XX
96 GPIO3_SET = 1; 96 GPIO3_SET = 1;
97#endif 97#endif
@@ -126,7 +126,7 @@ static inline void __backlight_off(void)
126#elif CONFIG_BACKLIGHT==BL_IRIVER_IFP7XX 126#elif CONFIG_BACKLIGHT==BL_IRIVER_IFP7XX
127 GPIO3_CLR = 1; 127 GPIO3_CLR = 1;
128#elif CONFIG_BACKLIGHT==BL_IPOD3G 128#elif CONFIG_BACKLIGHT==BL_IPOD3G
129 lcd_enable(false); 129 outl(inl(0xc0001000) & ~0x02, 0xc0001000);
130#elif CONFIG_BACKLIGHT==BL_IPODMINI 130#elif CONFIG_BACKLIGHT==BL_IPODMINI
131 /* set port B03 off */ 131 /* set port B03 off */
132 outl(((0x100 | 0) << 3), 0x6000d824); 132 outl(((0x100 | 0) << 3), 0x6000d824);