Commit d6e99fa4 authored by Ulf Hansson's avatar Ulf Hansson Committed by Mike Turquette

clk: ux500: Add armss clk and fixup smp_twd clk for u8500

The new armss clk is a prcmu_scalable_rate clk which represents
the ARMSS clk. This then makes it possible to convert the smp_twd
clk to a fixed factor clock type, using a fixed divider of 2 and
with the armss clk as parent.
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarMike Turquette <mturquette@linaro.org>
parent a816d250
...@@ -206,16 +206,18 @@ void u8500_clk_init(void) ...@@ -206,16 +206,18 @@ void u8500_clk_init(void)
clk_register_clkdev(clk, "dsilp2", "dsilink.2"); clk_register_clkdev(clk, "dsilp2", "dsilink.2");
clk_register_clkdev(clk, "dsilp2", "mcde"); clk_register_clkdev(clk, "dsilp2", "mcde");
clk = clk_reg_prcmu_rate("smp_twd", NULL, PRCMU_ARMSS, clk = clk_reg_prcmu_scalable_rate("armss", NULL,
CLK_IS_ROOT|CLK_GET_RATE_NOCACHE| PRCMU_ARMSS, 0, CLK_IS_ROOT|CLK_IGNORE_UNUSED);
CLK_IGNORE_UNUSED); clk_register_clkdev(clk, "armss", NULL);
clk = clk_register_fixed_factor(NULL, "smp_twd", "armss",
CLK_IGNORE_UNUSED, 1, 2);
clk_register_clkdev(clk, NULL, "smp_twd"); clk_register_clkdev(clk, NULL, "smp_twd");
/* /*
* FIXME: Add special handled PRCMU clocks here: * FIXME: Add special handled PRCMU clocks here:
* 1. clk_arm, use PRCMU_ARMCLK. * 1. clkout0yuv, use PRCMU as parent + need regulator + pinctrl.
* 2. clkout0yuv, use PRCMU as parent + need regulator + pinctrl. * 2. ab9540_clkout1yuv, see clkout0yuv
* 3. ab9540_clkout1yuv, see clkout0yuv
*/ */
/* PRCC P-clocks */ /* PRCC P-clocks */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment