summaryrefslogtreecommitdiff
path: root/firmware/drivers/button.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r--firmware/drivers/button.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 143d4570e4..fc9cc7ac25 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -203,7 +203,7 @@ static int ipod_4g_button_read(void)
203 203
204void ipod_4g_button_int(void) 204void ipod_4g_button_int(void)
205{ 205{
206 PP5020_CPU_HI_INT_CLR = PP5020_I2C_MASK; 206 CPU_HI_INT_CLR = I2C_MASK;
207 udelay(250); 207 udelay(250);
208 outl(0x0, 0x7000c140); 208 outl(0x0, 0x7000c140);
209 int_btn = ipod_4g_button_read(); 209 int_btn = ipod_4g_button_read();
@@ -211,8 +211,8 @@ void ipod_4g_button_int(void)
211 outl(0x400a1f00, 0x7000c100); 211 outl(0x400a1f00, 0x7000c100);
212 212
213 GPIOB_OUTPUT_VAL |= 0x10; 213 GPIOB_OUTPUT_VAL |= 0x10;
214 PP5020_CPU_INT_EN = 0x40000000; 214 CPU_INT_EN = 0x40000000;
215 PP5020_CPU_HI_INT_EN = PP5020_I2C_MASK; 215 CPU_HI_INT_EN = I2C_MASK;
216} 216}
217#endif 217#endif
218 218
@@ -397,8 +397,8 @@ void button_init(void)
397 GPIOA_INT_CLR = GPIOA_INT_STAT & 0x20; 397 GPIOA_INT_CLR = GPIOA_INT_STAT & 0x20;
398 /* enable interrupts */ 398 /* enable interrupts */
399 GPIOA_INT_EN = 0x20; 399 GPIOA_INT_EN = 0x20;
400 PP5020_CPU_INT_EN = 0x40000000; 400 CPU_INT_EN = 0x40000000;
401 PP5020_CPU_HI_INT_EN = PP5020_I2C_MASK; 401 CPU_HI_INT_EN = I2C_MASK;
402#endif /* CONFIG_KEYPAD */ 402#endif /* CONFIG_KEYPAD */
403 403
404 queue_init(&button_queue); 404 queue_init(&button_queue);