]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: versal: Remove alt_ref_clk from clock sources
authorRajan Vaja <rajan.vaja@xilinx.com>
Tue, 5 May 2020 05:53:56 +0000 (22:53 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 24 Jun 2020 11:07:57 +0000 (13:07 +0200)
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>
drivers/clk/clk_versal.c

index 2fb3171d71fa76cbd0036582256b8bea88a4561f..6f82b60f04dbe94908b0fe2a35d8bb18b158a718 100644 (file)
@@ -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)