mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/4] ARM: boards: polyhex-debix: fix RGMII pin setup
@ 2023-08-29 12:43 Marco Felsch
  2023-08-29 12:43 ` [PATCH 2/4] ARM: boards: polyhex-debix: add SoM/Baseboard combination compatible Marco Felsch
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Marco Felsch @ 2023-08-29 12:43 UTC (permalink / raw)
  To: barebox

On the Debix SBC the EQOS interface is used as primary interface, the
FEC pins are routed to the extension header. On the other hand the Debix
SoM/Baseboard combination both interfaces are used. So fix the RGMII pin
setup by adding the EQOS pin as well and keep the FEC.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 arch/arm/boards/polyhex-debix/board.c | 3 ++-
 include/mach/imx/iomux-mx8mp.h        | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boards/polyhex-debix/board.c b/arch/arm/boards/polyhex-debix/board.c
index d668dd1816f8..46cb18c5889c 100644
--- a/arch/arm/boards/polyhex-debix/board.c
+++ b/arch/arm/boards/polyhex-debix/board.c
@@ -28,7 +28,8 @@ static int polyhex_debix_probe(struct device *dev)
 
 	/* Enable RGMII TX clk output */
 	val = readl(MX8MP_IOMUXC_GPR_BASE_ADDR + MX8MP_IOMUXC_GPR1);
-	val |= MX8MP_IOMUXC_GPR1_ENET1_RGMII_EN;
+	val |= MX8MP_IOMUXC_GPR1_ENET1_RGMII_EN |
+	       MX8MP_IOMUXC_GPR1_ENET_QOS_RGMII_EN;
 	writel(val, MX8MP_IOMUXC_GPR_BASE_ADDR + MX8MP_IOMUXC_GPR1);
 
 	return 0;
diff --git a/include/mach/imx/iomux-mx8mp.h b/include/mach/imx/iomux-mx8mp.h
index b410eaebc8ac..98e340d3dad1 100644
--- a/include/mach/imx/iomux-mx8mp.h
+++ b/include/mach/imx/iomux-mx8mp.h
@@ -1099,5 +1099,6 @@ static inline void imx8mp_setup_pad(iomux_v3_cfg_t pad)
 
 #define MX8MP_IOMUXC_GPR1			0x4
 #define MX8MP_IOMUXC_GPR1_ENET1_RGMII_EN	BIT(22)
+#define MX8MP_IOMUXC_GPR1_ENET_QOS_RGMII_EN	BIT(21)
 
 #endif  /* __ASM_ARCH_IMX8MP_PINS_H__ */
-- 
2.39.2




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-09-05 12:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-29 12:43 [PATCH 1/4] ARM: boards: polyhex-debix: fix RGMII pin setup Marco Felsch
2023-08-29 12:43 ` [PATCH 2/4] ARM: boards: polyhex-debix: add SoM/Baseboard combination compatible Marco Felsch
2023-08-29 12:43 ` [PATCH 3/4] ARM: boards: polyhex-debix: add support to read MAC addresses Marco Felsch
2023-08-29 12:43 ` [PATCH 4/4] ARM: dts: imx8mp-debix-som-a-bmb-08-upstream: sync with mainlined kernel version Marco Felsch
2023-09-05 12:23 ` [PATCH 1/4] ARM: boards: polyhex-debix: fix RGMII pin setup Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox