summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/gigabeat-s/button-imx31.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2009-03-22 01:50:48 +0000
committerMichael Sevakis <jethead71@rockbox.org>2009-03-22 01:50:48 +0000
commitb7f7655dc2ae979fee8b01ed894224e5c2f7c719 (patch)
tree6540a83276514c2ea27b9c633ac9872588e126be /firmware/target/arm/imx31/gigabeat-s/button-imx31.c
parent6a76ebbab10594f425edbd26e1fa35b0e37a61e5 (diff)
imx31/mc13783: Do some housekeeping with register macros, function names and other defines. No functional changes (except to alter a couple int priorities).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20442 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/button-imx31.c')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/button-imx31.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/button-imx31.c b/firmware/target/arm/imx31/gigabeat-s/button-imx31.c
index d2a46f2c9f..505ba397d9 100644
--- a/firmware/target/arm/imx31/gigabeat-s/button-imx31.c
+++ b/firmware/target/arm/imx31/gigabeat-s/button-imx31.c
@@ -197,7 +197,7 @@ void button_init_device(void)
#endif
/* Enable keypad clock */
- imx31_clkctl_module_clock_gating(CG_KPP, CGM_ON_ALL);
+ ccm_module_clock_gating(CG_KPP, CGM_ON_RUN_WAIT);
/* 1. Enable number of rows in keypad (KPCR[4:0])
*
@@ -219,8 +219,7 @@ void button_init_device(void)
* 6. Set the KDIE control bit bit. */
KPP_KPSR = KPP_KPSR_KDIE | KPP_KPSR_KRSS | KPP_KPSR_KDSC | KPP_KPSR_KPKD;
- /* KPP IRQ at priority 3 */
- avic_enable_int(KPP, IRQ, 3, KPP_HANDLER);
+ avic_enable_int(INT_KPP, INT_TYPE_IRQ, INT_PRIO_DEFAULT, KPP_HANDLER);
button_power_event();
mc13783_enable_event(MC13783_ONOFD1_EVENT);
@@ -235,7 +234,7 @@ void button_close_device(void)
{
int oldlevel = disable_irq_save();
- avic_disable_int(KPP);
+ avic_disable_int(INT_KPP);
KPP_KPSR &= ~(KPP_KPSR_KRIE | KPP_KPSR_KDIE);
int_btn = BUTTON_NONE;