mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
clk: versal: Update the reference clocks as per bindings
As per the bindings the reference clocks naming has changed from "pl_alt_ref_clk" to "pl_alt_ref" and "ref_clk" to "ref". Update the same in the clock driver. Also add the fallback option for older DT bindings. Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com> Link: https://lore.kernel.org/r/20250206091533.1447234-1-venkatesh.abbarapu@amd.com Signed-off-by: Michal Simek <michal.simek@amd.com>
This commit is contained in:
parent
6ae0a578de
commit
a7670e6c5b
@ -679,12 +679,21 @@ static int versal_clk_probe(struct udevice *dev)
|
|||||||
|
|
||||||
debug("%s\n", __func__);
|
debug("%s\n", __func__);
|
||||||
|
|
||||||
ret = versal_clock_get_freq_by_name("pl_alt_ref_clk",
|
ret = versal_clock_get_freq_by_name("pl_alt_ref",
|
||||||
dev, &pl_alt_ref_clk);
|
dev, &pl_alt_ref_clk);
|
||||||
|
if (ret == -ENODATA) {
|
||||||
|
/* Fallback to old DT binding clk name "pl_alt_ref_clk" */
|
||||||
|
ret = versal_clock_get_freq_by_name("pl_alt_ref_clk",
|
||||||
|
dev, &pl_alt_ref_clk);
|
||||||
|
}
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
ret = versal_clock_get_freq_by_name("ref_clk", dev, &ref_clk);
|
ret = versal_clock_get_freq_by_name("ref", dev, &ref_clk);
|
||||||
|
if (ret == -ENODATA) {
|
||||||
|
/* Fallback to old DT binding clk name "ref_clk" */
|
||||||
|
ret = versal_clock_get_freq_by_name("ref_clk", dev, &ref_clk);
|
||||||
|
}
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user