[PATCH v3 1/4] ARM: i.MX: setup ENET_TX_CLK_DIR in imx6_init for every imx6ul
Michael Grzeschik
m.grzeschik at pengutronix.de
Wed Jun 7 03:34:19 PDT 2017
We generically enable the output of ENET_TX_CLK.
It will be output if ENET_REF_CLK is selected.
Signed-off-by: Michael Grzeschik <m.grzeschik at pengutronix.de>
---
arch/arm/mach-imx/imx6.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm/mach-imx/imx6.c b/arch/arm/mach-imx/imx6.c
index 7b3fc1da27..5afbf6b30f 100644
--- a/arch/arm/mach-imx/imx6.c
+++ b/arch/arm/mach-imx/imx6.c
@@ -121,6 +121,16 @@ void imx6_setup_ipu_qos(void)
}
}
+void imx6ul_enet_clk_init(void)
+{
+ void __iomem *gprbase = IOMEM(MX6_IOMUXC_BASE_ADDR) + 0x4000;
+ uint32_t val;
+
+ val = readl(gprbase + IOMUXC_GPR1);
+ val |= (0x3 << 17);
+ writel(val, gprbase + IOMUXC_GPR1);
+}
+
int imx6_init(void)
{
const char *cputypestr;
@@ -159,6 +169,7 @@ int imx6_init(void)
break;
case IMX6_CPUTYPE_IMX6UL:
cputypestr = "i.MX6 UltraLite";
+ imx6ul_enet_clk_init();
break;
case IMX6_CPUTYPE_IMX6ULL:
cputypestr = "i.MX6 ULL";
--
2.11.0
More information about the barebox
mailing list