[PATCH v2 2/2] clk: imx8mp Enable EQOS clock
Arendt, Steffen
s.arendt at sensopart.de
Sat Feb 20 15:34:54 CET 2021
Enable EQOS clock for imx8mp
V2 includes if CONFIG ....
Signed-off-by: Steffen Arendt <s.arendt at sensopart.de<mailto:s.arendt at sensopart.de>>
---
diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c
index b31afb31c0..1ab5587e4e 100644
--- a/drivers/clk/imx/clk-imx8mp.c
+++ b/drivers/clk/imx/clk-imx8mp.c
@@ -130,6 +130,16 @@ static const char *imx8mp_ecspi3_sels[] = "osc_24m", "sys_pll2_200m", "sys_pll1
"sys_pll2_250m", "audio_pll2_out", ;
#endif
+#if CONFIG_IS_ENABLED(DWC_ETH_QOS)
+static const char *imx8mp_enet_qos_sels[] = "osc_24m", "sys_pll2_125m", "sys_pll2_50m",
+ "sys_pll2_100m", "sys_pll1_160m", "audio_pll1_out",
+ "video_pll1_out", "clk_ext4", ;
+
+static const char *imx8mp_enet_qos_timer_sels[] = "osc_24m", "sys_pll2_100m", "audio_pll1_out",
+ "clk_ext1", "clk_ext2", "clk_ext3",
+ "clk_ext4", "video_pll1_out", ;
+#endif
+
static const char *imx8mp_usdhc1_sels[] = "clock-osc-24m", "sys_pll1_400m", "sys_pll1_800m",
"sys_pll2_500m", "sys_pll3_out", "sys_pll1_266m",
"audio_pll2_out", "sys_pll1_100m", ;
@@ -426,6 +436,13 @@ static int imx8mp_clk_probe(struct udevice *dev)
imx_clk_gate4("ecspi3_root_clk", "ecspi3", base + 0x4090, 0));
#endif
+#if CONFIG_IS_ENABLED(DWC_ETH_QOS)
+ clk_dm(IMX8MP_CLK_ENET_QOS,
+ imx8m_clk_composite("enet_qos", imx8mp_enet_qos_sels, base + 0xa880));
+ clk_dm(IMX8MP_CLK_ENET_QOS_TIMER,
+ imx8m_clk_composite("enet_qos_timer", imx8mp_enet_qos_timer_sels, base + 0xa900));
+#endif
+
return 0;
_____________________________________________________________________________
SensoPart Industriesensorik GmbH
Am Wiedenbach 1
79695 Wieden
Deutschland
Telefon: +49 7673 821 0
Amtsgericht Freiburg HRB 660163
USt-IdNr.: DE 811614252
Gesch?ftsf?hrer: Dr. Theodor Wanner, Thorsten Wanner
Informationen gem. Art. 13 DSGVO f?r unsere Kunden, Partner, Lieferanten finden Sie in unserer Erkl?rung zum Datenschutz unter https://www.sensopart.com/de/datenschutz
More information about the U-Boot
mailing list