diff options
author | Dave Chapman <dave@dchapman.com> | 2007-04-12 17:58:02 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2007-04-12 17:58:02 +0000 |
commit | dbcd32181325c06d87056e82cbe2a0659063c93c (patch) | |
tree | 5ee1584395d21def18dad87d98f9ecb7cf61f26f /bootloader/ipod.c | |
parent | 27cbf6bcea0d0280a2f5d46ccf460edb08187b17 (diff) | |
download | rockbox-dbcd32181325c06d87056e82cbe2a0659063c93c.tar.gz rockbox-dbcd32181325c06d87056e82cbe2a0659063c93c.zip |
Non-functional change - use the firmware __backlight_on() function instead of writing directly to the ports to turn the backlight on
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13128 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader/ipod.c')
-rw-r--r-- | bootloader/ipod.c | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/bootloader/ipod.c b/bootloader/ipod.c index fa592b6f49..48812eae82 100644 --- a/bootloader/ipod.c +++ b/bootloader/ipod.c | |||
@@ -35,7 +35,7 @@ | |||
35 | #include "disk.h" | 35 | #include "disk.h" |
36 | #include "font.h" | 36 | #include "font.h" |
37 | #include "adc.h" | 37 | #include "adc.h" |
38 | #include "backlight.h" | 38 | #include "backlight-target.h" |
39 | #include "panic.h" | 39 | #include "panic.h" |
40 | #include "power.h" | 40 | #include "power.h" |
41 | #include "file.h" | 41 | #include "file.h" |
@@ -237,27 +237,7 @@ void* main(void) | |||
237 | 237 | ||
238 | /* Turn on the backlight */ | 238 | /* Turn on the backlight */ |
239 | 239 | ||
240 | #if CONFIG_BACKLIGHT==BL_IPOD4G | 240 | __backlight_on(); |
241 | /* brightness full */ | ||
242 | outl(0x80000000 | (0xff << 16), 0x7000a010); | ||
243 | |||
244 | /* set port B03 on */ | ||
245 | outl(((0x100 | 1) << 3), 0x6000d824); | ||
246 | |||
247 | #elif CONFIG_BACKLIGHT==BL_IPODMINI | ||
248 | /* set port B03 on */ | ||
249 | outl(((0x100 | 1) << 3), 0x6000d824); | ||
250 | |||
251 | #elif CONFIG_BACKLIGHT==BL_IPODNANO | ||
252 | |||
253 | /* set port B03 on */ | ||
254 | outl(((0x100 | 1) << 3), 0x6000d824); | ||
255 | |||
256 | /* set port L07 on */ | ||
257 | GPIOL_OUTPUT_VAL = ((0x100 | 1) << 7); | ||
258 | #elif CONFIG_BACKLIGHT==BL_IPOD3G | ||
259 | outl(inl(IPOD_LCD_BASE) | 0x2, IPOD_LCD_BASE); | ||
260 | #endif | ||
261 | 241 | ||
262 | TMP_IPOD_HW_REVISION = IPOD_HW_REVISION; | 242 | TMP_IPOD_HW_REVISION = IPOD_HW_REVISION; |
263 | ipod_hw_rev = IPOD_HW_REVISION; | 243 | ipod_hw_rev = IPOD_HW_REVISION; |