]> git.karo-electronics.de Git - linux-beck.git/commitdiff
clk: samsung: Add fixed_factor_clocks field to struct exynos_cmu_info
authorNaveen Krishna Ch <naveenkrishna.ch@gmail.com>
Mon, 22 Sep 2014 04:47:03 +0000 (10:17 +0530)
committerSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 31 Oct 2014 09:45:46 +0000 (10:45 +0100)
Add the fields "fixed_factor_clks" and "nr_fixed_factor_clks" to
"struct exynos_cmu_info" to allow registering of fixed factor
clocks as well with exynos_cmu_register_one().

Signed-off-by: Naveen Krishna Ch <naveenkrishna.ch@gmail.com>
Signed-off-by: Abhilash Kesavan <a.kesavan@samsung.com>
Reviewed-by: Thomas Abraham <thomas.ab@samsung.com>
Tested-by: Thomas Abraham <thomas.ab@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
drivers/clk/samsung/clk.c
drivers/clk/samsung/clk.h

index a64823627d3a00588d20c164e12dab569b935a8c..dd1f7c977b6b8d06bed125c45d08e53f097f0400 100644 (file)
@@ -402,6 +402,9 @@ void __init samsung_cmu_register_one(struct device_node *np,
        if (cmu->fixed_clks)
                samsung_clk_register_fixed_rate(ctx, cmu->fixed_clks,
                        cmu->nr_fixed_clks);
+       if (cmu->fixed_factor_clks)
+               samsung_clk_register_fixed_factor(ctx, cmu->fixed_factor_clks,
+                       cmu->nr_fixed_factor_clks);
        if (cmu->clk_regs)
                samsung_clk_sleep_init(reg_base, cmu->clk_regs,
                        cmu->nr_clk_regs);
index b3d0f4d97f970aca9d8b90f523d4ecbd5280c719..3f471e958cb0ad692b55a7018e88c599a2507876 100644 (file)
@@ -347,6 +347,9 @@ struct samsung_cmu_info {
        /* list of fixed clocks and respective count */
        struct samsung_fixed_rate_clock *fixed_clks;
        unsigned int nr_fixed_clks;
+       /* list of fixed factor clocks and respective count */
+       struct samsung_fixed_factor_clock *fixed_factor_clks;
+       unsigned int nr_fixed_factor_clks;
        /* total number of clocks with IDs assigned*/
        unsigned int nr_clk_ids;