summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-03-31 07:53:01 +0000
committerJens Arnold <amiconn@rockbox.org>2006-03-31 07:53:01 +0000
commite9da65356d36e6f12627afeb315b270f8c07248b (patch)
treec8b9575269dcc9fc707e27a32305bbe3d318912a
parent8c6e737bfb13516277e663d217abad8597fe84f4 (diff)
downloadrockbox-e9da65356d36e6f12627afeb315b270f8c07248b.zip
rockbox-e9da65356d36e6f12627afeb315b270f8c07248b.tar.gz
rockbox-e9da65356d36e6f12627afeb315b270f8c07248b.tar.bz2
rockbox-e9da65356d36e6f12627afeb315b270f8c07248b.tar.xz
Ooops, iPod 3G used lcd_enable() to switch backlight. Blind fix, needs testing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9379 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/backlight.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 1d9e4b5..97c9175 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -34,7 +34,7 @@
#include "pcf50606.h" /* iRiver brightness */
#endif
-#if (CONFIG_BACKLIGHT == BL_IRIVER_H300) || (CONFIG_BACKLIGHT == BL_IPOD3G)
+#if (CONFIG_BACKLIGHT == BL_IRIVER_H300)
#include "lcd.h" /* for lcd_enable() */
#endif
#ifdef HAVE_REMOTE_LCD
@@ -91,7 +91,7 @@ static inline void __backlight_on(void)
/* set port L07 on */
outl(((0x100 | 1) << 7), 0x6000d12c);
#elif CONFIG_BACKLIGHT==BL_IPOD3G
- lcd_enable(true);
+ outl(inl(0xc0001000) | 0x02, 0xc0001000);
#elif CONFIG_BACKLIGHT==BL_IRIVER_IFP7XX
GPIO3_SET = 1;
#endif
@@ -126,7 +126,7 @@ static inline void __backlight_off(void)
#elif CONFIG_BACKLIGHT==BL_IRIVER_IFP7XX
GPIO3_CLR = 1;
#elif CONFIG_BACKLIGHT==BL_IPOD3G
- lcd_enable(false);
+ outl(inl(0xc0001000) & ~0x02, 0xc0001000);
#elif CONFIG_BACKLIGHT==BL_IPODMINI
/* set port B03 off */
outl(((0x100 | 0) << 3), 0x6000d824);