diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2020-07-22 09:38:21 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2020-07-24 11:19:08 +0200 |
commit | b4c115c76184f2c56a295579161652fd5eb2dcc1 (patch) | |
tree | 7a6c0c25773792f22deb3b255a538d7d2115d351 /drivers/clk/at91/sama5d2.c | |
parent | clk: at91: clk-master: add master clock support for SAMA7G5 (diff) | |
download | linux-b4c115c76184f2c56a295579161652fd5eb2dcc1.tar.xz linux-b4c115c76184f2c56a295579161652fd5eb2dcc1.zip |
clk: at91: clk-peripheral: add support for changeable parent rate
Some peripheral clocks on SAMA7G5 supports requesting parent to change
its rate (image related clocks: csi, csi2dc, isc). Add support
so that if registered with this option the clock rate to be
requested from parent.
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/1595403506-8209-14-git-send-email-claudiu.beznea@microchip.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/at91/sama5d2.c')
-rw-r--r-- | drivers/clk/at91/sama5d2.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/clk/at91/sama5d2.c b/drivers/clk/at91/sama5d2.c index 6a685d00f16d..c7765b664940 100644 --- a/drivers/clk/at91/sama5d2.c +++ b/drivers/clk/at91/sama5d2.c @@ -291,7 +291,7 @@ static void __init sama5d2_pmc_setup(struct device_node *np) sama5d2_periphck[i].n, "masterck", sama5d2_periphck[i].id, - &range); + &range, INT_MIN); if (IS_ERR(hw)) goto err_free; @@ -304,7 +304,8 @@ static void __init sama5d2_pmc_setup(struct device_node *np) sama5d2_periph32ck[i].n, "h32mxck", sama5d2_periph32ck[i].id, - &sama5d2_periph32ck[i].r); + &sama5d2_periph32ck[i].r, + INT_MIN); if (IS_ERR(hw)) goto err_free; |