diff options
author | Dave Chapman <dave@dchapman.com> | 2006-02-21 15:01:25 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2006-02-21 15:01:25 +0000 |
commit | 8b1297a0b683c03f320b502652113633032411a7 (patch) | |
tree | d6d4104d8b7519c2edb56fa6b83e61a41615b4fd /firmware/backlight.c | |
parent | c7fd0fee7ad2581889e84748ab64e10003d9d526 (diff) | |
download | rockbox-8b1297a0b683c03f320b502652113633032411a7.tar.gz rockbox-8b1297a0b683c03f320b502652113633032411a7.zip |
Patch #1435744 from Andrew Scott - initial iPod Mini support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8764 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/backlight.c')
-rw-r--r-- | firmware/backlight.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c index daf987791d..0049f78607 100644 --- a/firmware/backlight.c +++ b/firmware/backlight.c | |||
@@ -236,6 +236,9 @@ static void __backlight_on(void) | |||
236 | 236 | ||
237 | /* set port b bit 3 on */ | 237 | /* set port b bit 3 on */ |
238 | outl(((0x100 | 1) << 3), 0x6000d824); | 238 | outl(((0x100 | 1) << 3), 0x6000d824); |
239 | #elif CONFIG_BACKLIGHT==BL_IPODMINI | ||
240 | /* set port B03 on */ | ||
241 | outl(((0x100 | 1) << 3), 0x6000d824); | ||
239 | #elif CONFIG_BACKLIGHT==BL_IPODNANO | 242 | #elif CONFIG_BACKLIGHT==BL_IPODNANO |
240 | /* set port B03 on */ | 243 | /* set port B03 on */ |
241 | outl(((0x100 | 1) << 3), 0x6000d824); | 244 | outl(((0x100 | 1) << 3), 0x6000d824); |
@@ -287,6 +290,9 @@ static void __backlight_off(void) | |||
287 | GPIO3_CLR = 1; | 290 | GPIO3_CLR = 1; |
288 | #elif CONFIG_BACKLIGHT==BL_IPOD3G | 291 | #elif CONFIG_BACKLIGHT==BL_IPOD3G |
289 | lcd_enable(false); | 292 | lcd_enable(false); |
293 | #elif CONFIG_BACKLIGHT==BL_IPODMINI | ||
294 | /* set port B03 off */ | ||
295 | outl(((0x100 | 0) << 3), 0x6000d824); | ||
290 | #endif | 296 | #endif |
291 | } | 297 | } |
292 | 298 | ||