diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2020-05-05 00:37:57 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2020-05-26 20:22:50 -0700 |
commit | 03a1ee1dad0e39390ca397fff0cf84a3b1de1beb (patch) | |
tree | f70c53397ee29abdabad6bc8902d02805d8c6952 /drivers/clk/at91/sama5d4.c | |
parent | clk: at91: allow setting PCKx parent via DT (diff) | |
download | linux-dev-03a1ee1dad0e39390ca397fff0cf84a3b1de1beb.tar.xz linux-dev-03a1ee1dad0e39390ca397fff0cf84a3b1de1beb.zip |
clk: at91: allow setting all PMC clock parents via DT
We need to have clocks accessible via phandle to select them
as peripheral clock parent using assigned-clock-parents in DT.
Add support for PLLACK/PLLBCK/AUDIOPLLCK clocks where available.
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lkml.kernel.org/r/fa39cc10dab8341ea4bc2b7152be9217b2cd34a5.1588630999.git.mirq-linux@rere.qmqm.pl
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/at91/sama5d4.c')
-rw-r--r-- | drivers/clk/at91/sama5d4.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/clk/at91/sama5d4.c b/drivers/clk/at91/sama5d4.c index 80692902b4e4..662ff5fa6e98 100644 --- a/drivers/clk/at91/sama5d4.c +++ b/drivers/clk/at91/sama5d4.c @@ -140,7 +140,7 @@ static void __init sama5d4_pmc_setup(struct device_node *np) if (IS_ERR(regmap)) return; - sama5d4_pmc = pmc_data_allocate(PMC_MCK2 + 1, + sama5d4_pmc = pmc_data_allocate(PMC_PLLACK + 1, nck(sama5d4_systemck), nck(sama5d4_periph32ck), 0, 3); if (!sama5d4_pmc) @@ -173,6 +173,8 @@ static void __init sama5d4_pmc_setup(struct device_node *np) if (IS_ERR(hw)) goto err_free; + sama5d4_pmc->chws[PMC_PLLACK] = hw; + hw = at91_clk_register_utmi(regmap, NULL, "utmick", "mainck"); if (IS_ERR(hw)) goto err_free; |