From e9da65356d36e6f12627afeb315b270f8c07248b Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 31 Mar 2006 07:53:01 +0000 Subject: 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 --- firmware/backlight.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/backlight.c') 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 @@ #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); -- cgit v1.2.3