From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dIYIZ-0003No-JE for barebox@lists.infradead.org; Wed, 07 Jun 2017 10:34:49 +0000 Received: from birne.hi.pengutronix.de ([2001:67c:670:100:feaa:14ff:fe28:e6f5] helo=birne) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dIYIE-0000kc-7s for barebox@lists.infradead.org; Wed, 07 Jun 2017 12:34:26 +0200 Received: from mgr by birne with local (Exim 4.84_2) (envelope-from ) id 1dIYIE-0001FJ-07 for barebox@lists.infradead.org; Wed, 07 Jun 2017 12:34:26 +0200 From: Michael Grzeschik Date: Wed, 7 Jun 2017 12:34:19 +0200 Message-Id: <20170607103422.4673-2-m.grzeschik@pengutronix.de> In-Reply-To: <20170607103422.4673-1-m.grzeschik@pengutronix.de> References: <20170607103422.4673-1-m.grzeschik@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v3 1/4] ARM: i.MX: setup ENET_TX_CLK_DIR in imx6_init for every imx6ul To: barebox@lists.infradead.org We generically enable the output of ENET_TX_CLK. It will be output if ENET_REF_CLK is selected. Signed-off-by: Michael Grzeschik --- 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 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox