summaryrefslogtreecommitdiff
path: root/drivers/clk/versatile/clk-vexpress-osc.c
diff options
context:
space:
mode:
authorSudeep Holla <sudeep.holla@arm.com>2017-11-10 16:06:57 +0000
committerStephen Boyd <sboyd@kernel.org>2018-03-16 15:29:54 -0700
commitaff2dc6b49fc642906eaa5523c5227c50fd77c50 (patch)
tree29cf3e4dadd7022feb58615cc31b9f23298a56e2 /drivers/clk/versatile/clk-vexpress-osc.c
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff)
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/clk-vexpress-osc.c')
-rw-r--r--drivers/clk/versatile/clk-vexpress-osc.c1
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);