From b2db4acc7ebb9e48482e85e85103345d650f8a68 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Mon, 14 Nov 2005 01:28:17 +0000 Subject: iPod: Add backlight functions for Nano git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7853 a1c6a512-1295-4272-9138-f99709370657 --- firmware/backlight.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'firmware') diff --git a/firmware/backlight.c b/firmware/backlight.c index eafa501d11..1e9d1ce743 100644 --- a/firmware/backlight.c +++ b/firmware/backlight.c @@ -216,6 +216,12 @@ static void __backlight_off(void) /* fades backlight off on 4g */ outl(inl(0x70000084) & ~0x2000000, 0x70000084); outl(0x80000000, 0x7000a010); +#elif CONFIG_BACKLIGHT==BL_IPODNANO + /* set port B03 off */ + outl(((0x100 | 0) << 3), 0x6000d824); + + /* set port L07 off */ + outl(((0x100 | 0) << 7), 0x6000d12c); #endif } @@ -245,6 +251,12 @@ static void __backlight_on(void) /* set port b bit 3 on */ outl(((0x100 | 1) << 3), 0x6000d824); +#elif CONFIG_BACKLIGHT==BL_IPODNANO + /* set port B03 on */ + outl(((0x100 | 1) << 3), 0x6000d824); + + /* set port L07 on */ + outl(((0x100 | 1) << 7), 0x6000d12c); #endif } -- cgit v1.2.3