From: Anson Huang Date: Thu, 16 Feb 2012 10:13:38 +0000 (+0800) Subject: ENGR00174630 [MX6]Disable GPT serial clock X-Git-Tag: v3.0.35-fsl_4.1.0~1615 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=efce41a70901fc351b2f2311423f526867555ba3;p=karo-tx-linux.git 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 --- 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)