summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/gigabeat-s/button-imx31.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2008-05-08 16:27:23 +0000
committerNils Wallménius <nils@rockbox.org>2008-05-08 16:27:23 +0000
commitf24eaabcaded4d89bac4c5d3905b788f82a7d81c (patch)
tree24ff6f92fb602027a2caa8c0dd1b7e7a8091888d /firmware/target/arm/imx31/gigabeat-s/button-imx31.c
parent89aca6aa77d0bccb819723399169c5eb31a136ef (diff)
Disable clocks for most modules in the imx31l on startup, individual drivers handle enabling/disabling clocks for used modules
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17417 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/button-imx31.c b/firmware/target/arm/imx31/gigabeat-s/button-imx31.c
index 682c79f80a..28b711902b 100644
--- a/firmware/target/arm/imx31/gigabeat-s/button-imx31.c
+++ b/firmware/target/arm/imx31/gigabeat-s/button-imx31.c
@@ -25,6 +25,7 @@
#include "system.h"
#include "backlight-target.h"
#include "avic-imx31.h"
+#include "clkctl-imx31.h"
/* Most code in here is taken from the Linux BSP provided by Freescale
* Copyright 2004-2006 Freescale Semiconductor, Inc. All Rights Reserved. */
@@ -119,7 +120,7 @@ static __attribute__((interrupt("IRQ"))) void KPP_HANDLER(void)
void button_init_device(void)
{
/* Enable keypad clock */
- CLKCTL_CGR1 |= (3 << 2*10);
+ imx31_clkctl_module_clock_gating(CG_KPP, CGM_ON_ALL);
/* 1. Enable number of rows in keypad (KPCR[4:0])
*