]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: mediatek: mt7986: add missing entry for IPCIE_PIPE_CK infra gate
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 3 Aug 2024 08:40:39 +0000 (10:40 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 19 Aug 2024 22:14:43 +0000 (16:14 -0600)
Add missing entry for IPCIE_PIPE_CK infra gate clock. Renumber the clock
order to match the expected offset in the gate array.

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

index f1870ce3d60f1b52a0e48cf900370e9186c0db1a..5f07de237560e217fbf5b67d6045298a67277170 100644 (file)
@@ -336,7 +336,7 @@ static const struct mtk_parent infra_pwm_bsel_parents[] = {
 static const struct mtk_parent infra_pcie_parents[] = {
        TOP_PARENT(CK_TOP_CB_RTC_32P7K),
        TOP_PARENT(CK_TOP_F26M_SEL),
-       VOID_PARENT,
+       TOP_PARENT(CK_TOP_XTAL),
        TOP_PARENT(CK_TOP_PEXTP_TL_SEL)
 };
 
@@ -487,6 +487,7 @@ static const struct mtk_gate infracfg_ao_gates[] = {
                        2),
        GATE_INFRA2_TOP(CK_INFRA_IUSB_CK, "infra_iusb", CK_TOP_U2U3_SEL, 3),
        GATE_INFRA2_TOP(CK_INFRA_IPCIE_CK, "infra_ipcie", CK_TOP_PEXTP_TL_SEL, 12),
+       GATE_INFRA2_TOP(CK_INFRA_IPCIE_PIPE_CK, "infra_ipcie_pipe", CK_TOP_XTAL, 13),
        GATE_INFRA2_TOP(CK_INFRA_IPCIER_CK, "infra_ipcier", CK_TOP_F26M_SEL, 14),
        GATE_INFRA2_TOP(CK_INFRA_IPCIEB_CK, "infra_ipcieb", CK_TOP_SYSAXI_SEL, 15),
 };
index dbae389858aed7b1de67d813e35595af65618f70..16faca5fef8e87fc7c2d0c9dd613eb417c131885 100644 (file)
 #define CK_INFRA_IUSB_SYS_CK           40
 #define CK_INFRA_IUSB_CK               41
 #define CK_INFRA_IPCIE_CK              42
-#define CK_INFRA_IPCIER_CK             43
-#define CK_INFRA_IPCIEB_CK             44
-#define CLK_INFRA_AO_NR_CLK            45
+#define CK_INFRA_IPCIE_PIPE_CK         43
+#define CK_INFRA_IPCIER_CK             44
+#define CK_INFRA_IPCIEB_CK             45
+#define CLK_INFRA_AO_NR_CLK            46
 
 /* APMIXEDSYS */