]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: mediatek: mt7981: add missing clock for infra_ipcie_pipe
authorChristian Marangi <ansuelsmth@gmail.com>
Fri, 2 Aug 2024 13:53:02 +0000 (15:53 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 19 Aug 2024 22:13:13 +0000 (16:13 -0600)
Add missing clock for infra_ipcie_pipe to make PCIe correctly work. This
clock is a parent of the fixed clock from topckgen cb_cksq_40m.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
drivers/clk/mediatek/clk-mt7981.c
include/dt-bindings/clock/mt7981-clk.h

index 13dc3df0e9ea8573e200cfb35bcf1b8a73e86a31..7a6991624217ed38fded2ba243257d1d4c3fa700 100644 (file)
@@ -515,6 +515,7 @@ static const struct mtk_gate infracfg_ao_gates[] = {
        GATE_INFRA2(CK_INFRA_IUSB_CK, "infra_iusb", CK_INFRA_USB_CK, 3),
        GATE_INFRA2(CK_INFRA_IPCIE_CK, "infra_ipcie",
                    CK_INFRA_PCIE_GFMUX_TL_O_PRE, 12),
+       GATE_INFRA2(CK_INFRA_IPCIE_PIPE_CK, "infra_ipcie_pipe", CK_TOP_CB_CKSQ_40M, 13),
        GATE_INFRA2(CK_INFRA_IPCIER_CK, "infra_ipcier", CK_INFRA_F26M_CK0, 14),
        GATE_INFRA2(CK_INFRA_IPCIEB_CK, "infra_ipcieb", CK_INFRA_133M_PHCK, 15),
 };
index e24c759e4992166203b4fb5cc6df91f4326435e0..1c2781cd765c424c478c1b0a5cd5ebfe9e656946 100644 (file)
 #define CK_INFRA_IPCIE_CK              (54 - INFRACFG_AO_OFFSET)
 #define CK_INFRA_IPCIER_CK             (55 - INFRACFG_AO_OFFSET)
 #define CK_INFRA_IPCIEB_CK             (56 - INFRACFG_AO_OFFSET)
-#define CLK_INFRA_AO_NR_CLK            (57 - INFRACFG_AO_OFFSET)
+#define CK_INFRA_IPCIE_PIPE_CK         (57 - INFRACFG_AO_OFFSET)
+#define CLK_INFRA_AO_NR_CLK            (58 - INFRACFG_AO_OFFSET)
 
 /* APMIXEDSYS */