diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2017-11-10 17:06:57 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-03-16 23:29:54 +0100 |
commit | aff2dc6b49fc642906eaa5523c5227c50fd77c50 (patch) | |
tree | 29cf3e4dadd7022feb58615cc31b9f23298a56e2 /drivers/clk/versatile | |
parent | Linux 4.16-rc1 (diff) | |
download | linux-aff2dc6b49fc642906eaa5523c5227c50fd77c50.tar.xz linux-aff2dc6b49fc642906eaa5523c5227c50fd77c50.zip |
clk: versatile: add min/max rate boundaries for vexpress osc clock
Clock framework has a provider API(clk_hw_set_rate_range) to set the
min/max rate of a clock. Use the same to set the boundaries for the
vexpress osc clock.
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Cc: linux-clk@vger.kernel.org
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/versatile')
-rw-r--r-- | drivers/clk/versatile/clk-vexpress-osc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/versatile/clk-vexpress-osc.c b/drivers/clk/versatile/clk-vexpress-osc.c index e7a868b83fe5..d3b5af2a02ab 100644 --- a/drivers/clk/versatile/clk-vexpress-osc.c +++ b/drivers/clk/versatile/clk-vexpress-osc.c @@ -104,6 +104,7 @@ static int vexpress_osc_probe(struct platform_device *pdev) return PTR_ERR(clk); of_clk_add_provider(pdev->dev.of_node, of_clk_src_simple_get, clk); + clk_hw_set_rate_range(&osc->hw, osc->rate_min, osc->rate_max); dev_dbg(&pdev->dev, "Registered clock '%s'\n", init.name); |