diff options
author | Claudiu Beznea <claudiu.beznea@microchip.com> | 2023-06-15 11:32:17 +0200 |
---|---|---|
committer | Claudiu Beznea <claudiu.beznea@microchip.com> | 2023-06-21 09:42:45 +0200 |
commit | b5105e377df929dd7d96628122c13e6852f2fe80 (patch) | |
tree | 69e6b0da11907f8d328bd34836bd9119dd2fa837 /drivers/clk/at91/sama5d2.c | |
parent | dt-bindings: clocks: at91sam9x5-sckc: convert to yaml (diff) | |
download | linux-b5105e377df929dd7d96628122c13e6852f2fe80.tar.xz linux-b5105e377df929dd7d96628122c13e6852f2fe80.zip |
clk: at91: clk-main: add support for parent_data/parent_hw
Add support for parent_data and parent_hw in main oscillator clock drivers.
With this parent-child relations are described with pointers rather
than strings making registration a bit faster.
All the SoC based drivers that rely on clk-main were adapted
to the new API change. The switch itself for SoCs will be done
in subsequent patches.
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20230615093227.576102-2-claudiu.beznea@microchip.com
Diffstat (limited to 'drivers/clk/at91/sama5d2.c')
-rw-r--r-- | drivers/clk/at91/sama5d2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/at91/sama5d2.c b/drivers/clk/at91/sama5d2.c index c0e3e1a4bbf3..2ee8f10d3b03 100644 --- a/drivers/clk/at91/sama5d2.c +++ b/drivers/clk/at91/sama5d2.c @@ -202,14 +202,14 @@ static void __init sama5d2_pmc_setup(struct device_node *np) bypass = of_property_read_bool(np, "atmel,osc-bypass"); - hw = at91_clk_register_main_osc(regmap, "main_osc", mainxtal_name, + hw = at91_clk_register_main_osc(regmap, "main_osc", mainxtal_name, NULL, bypass); if (IS_ERR(hw)) goto err_free; parent_names[0] = "main_rc_osc"; parent_names[1] = "main_osc"; - hw = at91_clk_register_sam9x5_main(regmap, "mainck", parent_names, 2); + hw = at91_clk_register_sam9x5_main(regmap, "mainck", parent_names, NULL, 2); if (IS_ERR(hw)) goto err_free; |