diff options
Diffstat (limited to 'bootloader/ipod.c')
-rw-r--r-- | bootloader/ipod.c | 14 |
1 files changed, 7 insertions, 7 deletions
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) | |||
82 | { | 82 | { |
83 | int start_time; | 83 | int start_time; |
84 | 84 | ||
85 | outl(inl(0x6000d004) & ~0x80, 0x6000d004); | 85 | GPIOB_ENABLE &=~ 0x80; |
86 | 86 | ||
87 | outl(inl(0x7000c104) | 0xc000000, 0x7000c104); | 87 | outl(inl(0x7000c104) | 0xc000000, 0x7000c104); |
88 | outl(val, 0x7000c120); | 88 | outl(val, 0x7000c120); |
89 | outl(inl(0x7000c100) | 0x80000000, 0x7000c100); | 89 | outl(inl(0x7000c100) | 0x80000000, 0x7000c100); |
90 | 90 | ||
91 | outl(inl(0x6000d024) & ~0x10, 0x6000d024); | 91 | GPIOB_OUTPUT_VAL &=~ 0x10; |
92 | outl(inl(0x6000d014) | 0x10, 0x6000d014); | 92 | GPIOB_OUTPUT_EN |= 0x10; |
93 | 93 | ||
94 | start_time = USEC_TIMER; | 94 | start_time = USEC_TIMER; |
95 | do { | 95 | do { |
@@ -100,9 +100,9 @@ static void ser_opto_keypad_cfg(int val) | |||
100 | 100 | ||
101 | outl(inl(0x7000c100) & ~0x80000000, 0x7000c100); | 101 | outl(inl(0x7000c100) & ~0x80000000, 0x7000c100); |
102 | 102 | ||
103 | outl(inl(0x6000d004) | 0x80, 0x6000d004); | 103 | GPIOB_ENABLE |= 0x80; |
104 | outl(inl(0x6000d024) | 0x10, 0x6000d024); | 104 | GPIOB_OUTPUT_VAL |= 0x10; |
105 | outl(inl(0x6000d014) & ~0x10, 0x6000d014); | 105 | GPIOB_OUTPUT_EN &=~0x10; |
106 | 106 | ||
107 | outl(inl(0x7000c104) | 0xc000000, 0x7000c104); | 107 | outl(inl(0x7000c104) | 0xc000000, 0x7000c104); |
108 | outl(inl(0x7000c100) | 0x60000000, 0x7000c100); | 108 | outl(inl(0x7000c100) | 0x60000000, 0x7000c100); |
@@ -253,7 +253,7 @@ void* main(void) | |||
253 | outl(((0x100 | 1) << 3), 0x6000d824); | 253 | outl(((0x100 | 1) << 3), 0x6000d824); |
254 | 254 | ||
255 | /* set port L07 on */ | 255 | /* set port L07 on */ |
256 | outl(((0x100 | 1) << 7), 0x6000d12c); | 256 | GPIOL_OUTPUT_VAL = ((0x100 | 1) << 7); |
257 | #elif CONFIG_BACKLIGHT==BL_IPOD3G | 257 | #elif CONFIG_BACKLIGHT==BL_IPOD3G |
258 | outl(inl(IPOD_LCD_BASE) | 0x2, IPOD_LCD_BASE); | 258 | outl(inl(IPOD_LCD_BASE) | 0x2, IPOD_LCD_BASE); |
259 | #endif | 259 | #endif |