From 8b061252c4359aa960ae31c0a4b2ba92f6771017 Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Sat, 3 Mar 2007 17:25:20 +0000 Subject: Replace some inl/outl with register #define's instead. Also tidy up pp5020.h so that it's in increasing address order. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12574 a1c6a512-1295-4272-9138-f99709370657 --- bootloader/ipod.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bootloader/ipod.c') diff --git a/bootloader/ipod.c b/bootloader/ipod.c index 73b4fffc71..0600ea62c1 100644 --- a/bootloader/ipod.c +++ b/bootloader/ipod.c @@ -82,14 +82,14 @@ static void ser_opto_keypad_cfg(int val) { int start_time; - outl(inl(0x6000d004) & ~0x80, 0x6000d004); + GPIOB_ENABLE &=~ 0x80; outl(inl(0x7000c104) | 0xc000000, 0x7000c104); outl(val, 0x7000c120); outl(inl(0x7000c100) | 0x80000000, 0x7000c100); - outl(inl(0x6000d024) & ~0x10, 0x6000d024); - outl(inl(0x6000d014) | 0x10, 0x6000d014); + GPIOB_OUTPUT_VAL &=~ 0x10; + GPIOB_OUTPUT_EN |= 0x10; start_time = USEC_TIMER; do { @@ -100,9 +100,9 @@ static void ser_opto_keypad_cfg(int val) outl(inl(0x7000c100) & ~0x80000000, 0x7000c100); - outl(inl(0x6000d004) | 0x80, 0x6000d004); - outl(inl(0x6000d024) | 0x10, 0x6000d024); - outl(inl(0x6000d014) & ~0x10, 0x6000d014); + GPIOB_ENABLE |= 0x80; + GPIOB_OUTPUT_VAL |= 0x10; + GPIOB_OUTPUT_EN &=~0x10; outl(inl(0x7000c104) | 0xc000000, 0x7000c104); outl(inl(0x7000c100) | 0x60000000, 0x7000c100); @@ -253,7 +253,7 @@ void* main(void) outl(((0x100 | 1) << 3), 0x6000d824); /* set port L07 on */ - outl(((0x100 | 1) << 7), 0x6000d12c); + GPIOL_OUTPUT_VAL = ((0x100 | 1) << 7); #elif CONFIG_BACKLIGHT==BL_IPOD3G outl(inl(IPOD_LCD_BASE) | 0x2, IPOD_LCD_BASE); #endif -- cgit v1.2.3