]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: zynqmp: Add support for enabling clock on lpd_lsbus
authorMichal Simek <michal.simek@xilinx.com>
Thu, 1 Jul 2021 17:01:42 +0000 (19:01 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 26 Jul 2021 07:18:45 +0000 (09:18 +0200)
lpd_lsbus is clock which is used by many IPs like dmas, gems, gpio, sdhcis,
spis, ttcs, uarts, watchdog that's why make sense to also enable access to
change this clock. For this clock you already get the rate.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/clk/clk_zynqmp.c

index 13a623fdb96a04c034d10f604f5da6e862c861dc..52fecec7a7a9a2c19493f39952054846409015eb 100644 (file)
@@ -813,6 +813,7 @@ static int zynqmp_clk_enable(struct clk *clk)
                mask = 0x3;
                break;
        case qspi_ref ... can1_ref:
+       case lpd_lsbus:
                clkact_shift = 24;
                mask = 0x1;
                break;