diff options
author | Naveen Krishna Ch <naveenkrishna.ch@gmail.com> | 2014-09-22 00:47:03 -0400 |
---|---|---|
committer | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2014-10-31 05:45:46 -0400 |
commit | 0e5af27008f947fe983004d502c3b2c1ddde1029 (patch) | |
tree | cd396ceb850153b098257f2da2a76713f5c976fc /drivers/clk/samsung | |
parent | 16a9013b83b5106c83cf3caf9ba0d94e54dbebba (diff) |
clk: samsung: Add fixed_factor_clocks field to struct exynos_cmu_info
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>
Diffstat (limited to 'drivers/clk/samsung')
-rw-r--r-- | drivers/clk/samsung/clk.c | 3 | ||||
-rw-r--r-- | drivers/clk/samsung/clk.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/clk/samsung/clk.c b/drivers/clk/samsung/clk.c index a64823627d3a..dd1f7c977b6b 100644 --- a/drivers/clk/samsung/clk.c +++ b/drivers/clk/samsung/clk.c | |||
@@ -402,6 +402,9 @@ void __init samsung_cmu_register_one(struct device_node *np, | |||
402 | if (cmu->fixed_clks) | 402 | if (cmu->fixed_clks) |
403 | samsung_clk_register_fixed_rate(ctx, cmu->fixed_clks, | 403 | samsung_clk_register_fixed_rate(ctx, cmu->fixed_clks, |
404 | cmu->nr_fixed_clks); | 404 | cmu->nr_fixed_clks); |
405 | if (cmu->fixed_factor_clks) | ||
406 | samsung_clk_register_fixed_factor(ctx, cmu->fixed_factor_clks, | ||
407 | cmu->nr_fixed_factor_clks); | ||
405 | if (cmu->clk_regs) | 408 | if (cmu->clk_regs) |
406 | samsung_clk_sleep_init(reg_base, cmu->clk_regs, | 409 | samsung_clk_sleep_init(reg_base, cmu->clk_regs, |
407 | cmu->nr_clk_regs); | 410 | cmu->nr_clk_regs); |
diff --git a/drivers/clk/samsung/clk.h b/drivers/clk/samsung/clk.h index b3d0f4d97f97..3f471e958cb0 100644 --- a/drivers/clk/samsung/clk.h +++ b/drivers/clk/samsung/clk.h | |||
@@ -347,6 +347,9 @@ struct samsung_cmu_info { | |||
347 | /* list of fixed clocks and respective count */ | 347 | /* list of fixed clocks and respective count */ |
348 | struct samsung_fixed_rate_clock *fixed_clks; | 348 | struct samsung_fixed_rate_clock *fixed_clks; |
349 | unsigned int nr_fixed_clks; | 349 | unsigned int nr_fixed_clks; |
350 | /* list of fixed factor clocks and respective count */ | ||
351 | struct samsung_fixed_factor_clock *fixed_factor_clks; | ||
352 | unsigned int nr_fixed_factor_clks; | ||
350 | /* total number of clocks with IDs assigned*/ | 353 | /* total number of clocks with IDs assigned*/ |
351 | unsigned int nr_clk_ids; | 354 | unsigned int nr_clk_ids; |
352 | 355 | ||