diff options
author | Nils Wallménius <nils@rockbox.org> | 2008-05-08 16:27:23 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2008-05-08 16:27:23 +0000 |
commit | f24eaabcaded4d89bac4c5d3905b788f82a7d81c (patch) | |
tree | 24ff6f92fb602027a2caa8c0dd1b7e7a8091888d /firmware/target/arm/imx31/gigabeat-s/button-imx31.c | |
parent | 89aca6aa77d0bccb819723399169c5eb31a136ef (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.c | 3 |
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]) * |