summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx6/clock.c
diff options
context:
space:
mode:
authorAnson Huang <b20788@freescale.com>2012-02-16 18:13:38 +0800
committerJason Liu <r64343@freescale.com>2012-07-20 13:22:56 +0800
commit6ca6911357e81a513ce02b825afce98d7e07bb8a (patch)
tree566220075c312f30923b2ed71d8c309d30b522ec /arch/arm/mach-mx6/clock.c
parenta767f910479a610c12286dd4b3d8d5e114a580eb (diff)
ENGR00174630 [MX6]Disable GPT serial clock
Currently we use 24MHz clock as GPT's clock source, serial clock can be disabled, it sourced from high freq clock, gating it can save ~8mA @VDDSOC. Signed-off-by: Anson Huang <b20788@freescale.com>
Diffstat (limited to 'arch/arm/mach-mx6/clock.c')
-rw-r--r--arch/arm/mach-mx6/clock.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-mx6/clock.c b/arch/arm/mach-mx6/clock.c
index 56f78392b785..1c27d50c977f 100644
--- a/arch/arm/mach-mx6/clock.c
+++ b/arch/arm/mach-mx6/clock.c
@@ -5293,7 +5293,11 @@ int __init mx6_clocks_init(unsigned long ckil, unsigned long osc,
if (mx6q_revision() == IMX_CHIP_REVISION_1_0) {
gpt_clk[0].parent = &ipg_perclk;
gpt_clk[0].get_rate = NULL;
- }
+ } else {
+ /* Here we use OSC 24M as GPT's clock source, no need to
+ enable gpt serial clock*/
+ gpt_clk[0].secondary = NULL;
+ }
if (cpu_is_mx6dl()) {
if (epdc_use_video_pll)