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 | |
| parent | 27cbf6bcea0d0280a2f5d46ccf460edb08187b17 (diff) | |
| download | rockbox-dbcd32181325c06d87056e82cbe2a0659063c93c.zip rockbox-dbcd32181325c06d87056e82cbe2a0659063c93c.tar.gz rockbox-dbcd32181325c06d87056e82cbe2a0659063c93c.tar.bz2 rockbox-dbcd32181325c06d87056e82cbe2a0659063c93c.tar.xz | |
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')
| -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 fa592b6..48812ea 100644 --- a/bootloader/ipod.c +++ b/bootloader/ipod.c @@ -35,7 +35,7 @@ #include "disk.h" #include "font.h" #include "adc.h" -#include "backlight.h" +#include "backlight-target.h" #include "panic.h" #include "power.h" #include "file.h" @@ -237,27 +237,7 @@ void* main(void) /* Turn on the backlight */ -#if CONFIG_BACKLIGHT==BL_IPOD4G - /* brightness full */ - outl(0x80000000 | (0xff << 16), 0x7000a010); - - /* set port B03 on */ - outl(((0x100 | 1) << 3), 0x6000d824); - -#elif CONFIG_BACKLIGHT==BL_IPODMINI - /* set port B03 on */ - outl(((0x100 | 1) << 3), 0x6000d824); - -#elif CONFIG_BACKLIGHT==BL_IPODNANO - - /* set port B03 on */ - outl(((0x100 | 1) << 3), 0x6000d824); - - /* set port L07 on */ - GPIOL_OUTPUT_VAL = ((0x100 | 1) << 7); -#elif CONFIG_BACKLIGHT==BL_IPOD3G - outl(inl(IPOD_LCD_BASE) | 0x2, IPOD_LCD_BASE); -#endif + __backlight_on(); TMP_IPOD_HW_REVISION = IPOD_HW_REVISION; ipod_hw_rev = IPOD_HW_REVISION; |