All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/4] ARM: imx7d: add enet2 clk sel
@ 2020-07-14  5:11 Steffen Trumtrar
  2020-07-14  5:11 ` [PATCH v2 2/4] dt-bindings: Add DS2482 as trivial device Steffen Trumtrar
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Steffen Trumtrar @ 2020-07-14  5:11 UTC (permalink / raw)
  To: Shawn Guo, Rob Herring
  Cc: linux-arm-kernel, Fabio Estevam, NXP Linux Team, Pengutronix Kernel Team

Add clock source init for the second ethernet port.
This changes the clock direction and clock selection in a way that the
ethernet phy reference clock is routed as an output.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
 arch/arm/mach-imx/mach-imx7d.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/mach-imx/mach-imx7d.c b/arch/arm/mach-imx/mach-imx7d.c
index 879c35929a13..7a203f660721 100644
--- a/arch/arm/mach-imx/mach-imx7d.c
+++ b/arch/arm/mach-imx/mach-imx7d.c
@@ -65,6 +65,9 @@ static void __init imx7d_enet_clk_sel(void)
 	if (!IS_ERR(gpr)) {
 		regmap_update_bits(gpr, IOMUXC_GPR1, IMX7D_GPR1_ENET_TX_CLK_SEL_MASK, 0);
 		regmap_update_bits(gpr, IOMUXC_GPR1, IMX7D_GPR1_ENET_CLK_DIR_MASK, 0);
+		regmap_update_bits(gpr, IOMUXC_GPR1, IMX7D_GPR1_ENET2_TX_CLK_SEL_MASK, 0);
+		regmap_update_bits(gpr, IOMUXC_GPR1, IMX7D_GPR1_ENET2_CLK_DIR_MASK,
+				   IMX7D_GPR1_ENET2_CLK_DIR_MASK);
 	} else {
 		pr_err("failed to find fsl,imx7d-iomux-gpr regmap\n");
 	}
-- 
2.27.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2021-01-12 15:32 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-14  5:11 [PATCH v2 1/4] ARM: imx7d: add enet2 clk sel Steffen Trumtrar
2020-07-14  5:11 ` [PATCH v2 2/4] dt-bindings: Add DS2482 as trivial device Steffen Trumtrar
2020-10-26  1:58   ` Shawn Guo
2020-07-14  5:11 ` [PATCH v2 3/4] dt-bindings: Add vendor prefix for IoTmaxx GmbH Steffen Trumtrar
2020-10-26  1:59   ` Shawn Guo
2020-07-14  5:11 ` [PATCH v2 4/4] ARM: imx7: add support for iotmaxx gateway Steffen Trumtrar
2020-10-13  9:45   ` Steffen Trumtrar
2021-01-12 12:59     ` Steffen Trumtrar
2021-01-12 13:29   ` Fabio Estevam
2021-01-12 15:30     ` Ahmad Fatoum
2020-08-17  7:24 ` [PATCH v2 1/4] ARM: imx7d: add enet2 clk sel Shawn Guo
2020-08-24  9:46   ` Steffen Trumtrar
2020-10-26  1:57 ` Shawn Guo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.