summaryrefslogtreecommitdiff
path: root/drivers/clk
diff options
context:
space:
mode:
authorRajan Vaja <rajan.vaja@xilinx.com>2020-05-04 22:53:56 -0700
committerMichal Simek <michal.simek@xilinx.com>2020-06-24 13:07:57 +0200
commit2b2012d1c1d8515417ba139339d0aa9b47789dca (patch)
treed513df24d676658e16e14024ad6896aa9ce01eeb /drivers/clk
parent70014a78023e7fe400824217d082b96986fcbde8 (diff)
downloadu-boot-2b2012d1c1d8515417ba139339d0aa9b47789dca.tar.gz
u-boot-2b2012d1c1d8515417ba139339d0aa9b47789dca.tar.bz2
u-boot-2b2012d1c1d8515417ba139339d0aa9b47789dca.zip
clk: versal: Remove alt_ref_clk from clock sources
alt_ref_clk is applicable only for PS extended version. For PS base version there is no separate alt_ref_clk. It is tied with ref_clk, so remove it from driver. Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/clk_versal.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/clk/clk_versal.c b/drivers/clk/clk_versal.c
index 2fb3171d71..6f82b60f04 100644
--- a/drivers/clk/clk_versal.c
+++ b/drivers/clk/clk_versal.c
@@ -117,7 +117,6 @@ struct versal_clk_priv {
struct versal_clock *clk;
};
-static ulong alt_ref_clk;
static ulong pl_alt_ref_clk;
static ulong ref_clk;
@@ -548,8 +547,7 @@ int soc_clk_dump(void)
printf("\n ****** VERSAL CLOCKS *****\n");
- printf("alt_ref_clk:%ld pl_alt_ref_clk:%ld ref_clk:%ld\n",
- alt_ref_clk, pl_alt_ref_clk, ref_clk);
+ printf("pl_alt_ref_clk:%ld ref_clk:%ld\n", pl_alt_ref_clk, ref_clk);
for (i = 0; i < clock_max_idx; i++) {
debug("%s\n", clock[i].clk_name);
ret = versal_get_clock_type(i, &type);
@@ -667,10 +665,6 @@ static int versal_clk_probe(struct udevice *dev)
debug("%s\n", __func__);
- ret = versal_clock_get_freq_by_name("alt_ref_clk", dev, &alt_ref_clk);
- if (ret < 0)
- return -EINVAL;
-
ret = versal_clock_get_freq_by_name("pl_alt_ref_clk",
dev, &pl_alt_ref_clk);
if (ret < 0)