Skip to content
Snippets Groups Projects
Commit 05e23dd4 authored by Patrice Chotard's avatar Patrice Chotard Committed by Tom Rini
Browse files

clk: clk_stm32: Add .set_rate callback


Since 'commit f4fcba5c ("clk: implement clk_set_defaults()")'
STM32F4 family board can't boot.

Above patch calls clk_set_rate() for all nodes with assigned-clock-rates
property. Clock driver for STM32F family doesn't implement .set_rate
callback which make clk_set_defaults() exit on error and prevent board
to boot.

Fixes: f4fcba5c ("clk: implement clk_set_defaults()")
Signed-off-by: default avatarPatrice Chotard <patrice.chotard@st.com>
parent a70c05f1
Branches
Tags
No related merge requests found
...@@ -337,6 +337,11 @@ static unsigned long stm32_clk_get_rate(struct clk *clk) ...@@ -337,6 +337,11 @@ static unsigned long stm32_clk_get_rate(struct clk *clk)
} }
} }
static ulong stm32_set_rate(struct clk *clk, ulong rate)
{
return 0;
}
static int stm32_clk_enable(struct clk *clk) static int stm32_clk_enable(struct clk *clk)
{ {
struct stm32_clk *priv = dev_get_priv(clk->dev); struct stm32_clk *priv = dev_get_priv(clk->dev);
...@@ -464,6 +469,7 @@ static struct clk_ops stm32_clk_ops = { ...@@ -464,6 +469,7 @@ static struct clk_ops stm32_clk_ops = {
.of_xlate = stm32_clk_of_xlate, .of_xlate = stm32_clk_of_xlate,
.enable = stm32_clk_enable, .enable = stm32_clk_enable,
.get_rate = stm32_clk_get_rate, .get_rate = stm32_clk_get_rate,
.set_rate = stm32_set_rate,
}; };
U_BOOT_DRIVER(stm32fx_clk) = { U_BOOT_DRIVER(stm32fx_clk) = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment