clk: imx31: add a second rtc clock
authorPhilippe Reynes <tremyfr@gmail.com>
Sun, 26 Jul 2015 21:37:48 +0000 (23:37 +0200)
committerShawn Guo <shawnguo@kernel.org>
Wed, 5 Aug 2015 12:01:13 +0000 (20:01 +0800)
The mxc rtc driver needs two clock.
It was defined only one clock, so we
define the second clock.

Signed-off-by: Philippe Reynes <tremyfr@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/clk/imx/clk-imx31.c

index fe66c40b7be2d205af090bc42cc0346ca7c5d667..1f8383475bb369cebaf431772781fb2baf692524 100644 (file)
@@ -147,7 +147,8 @@ int __init mx31_clocks_init(unsigned long fref)
        clk_register_clkdev(clk[cspi3_gate], NULL, "imx31-cspi.2");
        clk_register_clkdev(clk[pwm_gate], "pwm", NULL);
        clk_register_clkdev(clk[wdog_gate], NULL, "imx2-wdt.0");
-       clk_register_clkdev(clk[rtc_gate], NULL, "imx21-rtc");
+       clk_register_clkdev(clk[ckil], "ref", "imx21-rtc");
+       clk_register_clkdev(clk[rtc_gate], "ipg", "imx21-rtc");
        clk_register_clkdev(clk[epit1_gate], "epit", NULL);
        clk_register_clkdev(clk[epit2_gate], "epit", NULL);
        clk_register_clkdev(clk[nfc], NULL, "imx27-nand.0");