From 77372d12189c70cb810a7e88bc2ee7a56f64646c Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Mon, 7 Nov 2005 23:07:19 +0000 Subject: Initial commit of work-in-progress iPod port git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7781 a1c6a512-1295-4272-9138-f99709370657 --- firmware/backlight.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'firmware/backlight.c') diff --git a/firmware/backlight.c b/firmware/backlight.c index ecd4403..eafa501 100644 --- a/firmware/backlight.c +++ b/firmware/backlight.c @@ -212,6 +212,10 @@ static void __backlight_off(void) and_b(~0x40, &PADRH); /* drive it low */ #elif CONFIG_BACKLIGHT == BL_GMINI P1 &= ~0x10; +#elif CONFIG_BACKLIGHT == BL_IPOD4G + /* fades backlight off on 4g */ + outl(inl(0x70000084) & ~0x2000000, 0x70000084); + outl(0x80000000, 0x7000a010); #endif } @@ -235,6 +239,12 @@ static void __backlight_on(void) or_b(0x40, &PADRH); /* drive it high */ #elif CONFIG_BACKLIGHT == BL_GMINI P1 |= 0x10; +#elif CONFIG_BACKLIGHT == BL_IPOD4G + /* brightness full */ + outl(0x80000000 | (0xff << 16), 0x7000a010); + + /* set port b bit 3 on */ + outl(((0x100 | 1) << 3), 0x6000d824); #endif } -- cgit v1.1