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-0003Nt-JG 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-0000kd-9u 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-0001FO-26 for barebox@lists.infradead.org; Wed, 07 Jun 2017 12:34:26 +0200 From: Michael Grzeschik Date: Wed, 7 Jun 2017 12:34:20 +0200 Message-Id: <20170607103422.4673-3-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 2/4] ARM: phytec-som-imx6: remove needles enet refclk setup To: barebox@lists.infradead.org All REF_CLK output setup now is generically prepared for imx6ul. The handling of the ENET_CLK_SEL (gpr[13]|gpr[14]) bits is not necessary, as 0 is their reset value. Signed-off-by: Michael Grzeschik --- arch/arm/boards/phytec-som-imx6/board.c | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/arch/arm/boards/phytec-som-imx6/board.c b/arch/arm/boards/phytec-som-imx6/board.c index b93fd1be60..cb397779c4 100644 --- a/arch/arm/boards/phytec-som-imx6/board.c +++ b/arch/arm/boards/phytec-som-imx6/board.c @@ -96,24 +96,6 @@ int ksz8081_phy_fixup(struct phy_device *phydev) return 0; } -static void imx6ul_setup_fec(void) -{ - void __iomem *gprbase = IOMEM(MX6_IOMUXC_BASE_ADDR) + 0x4000; - uint32_t val; - - phy_register_fixup_for_uid(PHY_ID_KSZ8081, MICREL_PHY_ID_MASK, - ksz8081_phy_fixup); - - val = readl(gprbase + IOMUXC_GPR1); - /* Use 50M anatop loopback REF_CLK1 for ENET1, clear gpr1[13], set gpr1[17]*/ - val &= ~(1 << 13); - val |= (1 << 17); - /* Use 50M anatop loopback REF_CLK1 for ENET2, clear gpr1[14], set gpr1[18]*/ - val &= ~(1 << 14); - val |= (1 << 18); - writel(val, gprbase + IOMUXC_GPR1); -} - static int physom_imx6_devices_init(void) { int ret; @@ -153,7 +135,10 @@ static int physom_imx6_devices_init(void) barebox_set_hostname("phyCORE-i.MX6UL"); default_environment_path = "/chosen/environment-nand"; default_envdev = "NAND flash"; - imx6ul_setup_fec(); + + phy_register_fixup_for_uid(PHY_ID_KSZ8081, MICREL_PHY_ID_MASK, + ksz8081_phy_fixup); + } else return 0; -- 2.11.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox