diff options
author | Dave Chapman <dave@dchapman.com> | 2005-11-14 01:28:17 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2005-11-14 01:28:17 +0000 |
commit | b2db4acc7ebb9e48482e85e85103345d650f8a68 (patch) | |
tree | 49bd1470769f723250a4cd98834896cc721622f9 | |
parent | 52e91de5d31bd1101a261365856268904b5aa230 (diff) | |
download | rockbox-b2db4acc7ebb9e48482e85e85103345d650f8a68.tar.gz rockbox-b2db4acc7ebb9e48482e85e85103345d650f8a68.zip |
iPod: Add backlight functions for Nano
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7853 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/backlight.c | 12 |
1 files changed, 12 insertions, 0 deletions
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) | |||
216 | /* fades backlight off on 4g */ | 216 | /* fades backlight off on 4g */ |
217 | outl(inl(0x70000084) & ~0x2000000, 0x70000084); | 217 | outl(inl(0x70000084) & ~0x2000000, 0x70000084); |
218 | outl(0x80000000, 0x7000a010); | 218 | outl(0x80000000, 0x7000a010); |
219 | #elif CONFIG_BACKLIGHT==BL_IPODNANO | ||
220 | /* set port B03 off */ | ||
221 | outl(((0x100 | 0) << 3), 0x6000d824); | ||
222 | |||
223 | /* set port L07 off */ | ||
224 | outl(((0x100 | 0) << 7), 0x6000d12c); | ||
219 | #endif | 225 | #endif |
220 | } | 226 | } |
221 | 227 | ||
@@ -245,6 +251,12 @@ static void __backlight_on(void) | |||
245 | 251 | ||
246 | /* set port b bit 3 on */ | 252 | /* set port b bit 3 on */ |
247 | outl(((0x100 | 1) << 3), 0x6000d824); | 253 | outl(((0x100 | 1) << 3), 0x6000d824); |
254 | #elif CONFIG_BACKLIGHT==BL_IPODNANO | ||
255 | /* set port B03 on */ | ||
256 | outl(((0x100 | 1) << 3), 0x6000d824); | ||
257 | |||
258 | /* set port L07 on */ | ||
259 | outl(((0x100 | 1) << 7), 0x6000d12c); | ||
248 | #endif | 260 | #endif |
249 | } | 261 | } |
250 | 262 | ||