]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00174630 [MX6]Disable GPT serial clock
authorAnson Huang <b20788@freescale.com>
Thu, 16 Feb 2012 10:13:38 +0000 (18:13 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:10:58 +0000 (14:10 +0200)
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>
arch/arm/mach-mx6/clock.c

index 56f78392b785cd53c8e52f1a155bf5a1b4566004..1c27d50c977fe66191bc8dc820ce72811e51fd8c 100644 (file)
@@ -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)