]> git.sur5r.net Git - u-boot/commitdiff
mx6: tqma6: clear enet clk sel for mba6
authorMarkus Niebel <Markus.Niebel@tq-group.com>
Fri, 3 Feb 2017 15:25:02 +0000 (16:25 +0100)
committerStefano Babic <sbabic@denx.de>
Fri, 17 Mar 2017 08:27:08 +0000 (09:27 +0100)
we have external ref clock from phy.

Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>
board/tqc/tqma6/tqma6_mba6.c

index 6d639530147b3a8e82176419851d6e772678d334..1c5b95304b5534fff6441d01c0bee9b6a8f9a9ca 100644 (file)
@@ -114,6 +114,11 @@ static iomux_v3_cfg_t const mba6_enet_pads[] = {
 
 static void mba6_setup_iomuxc_enet(void)
 {
+       struct iomuxc *const iomuxc_regs = (struct iomuxc *)IOMUXC_BASE_ADDR;
+
+       /* clear gpr1[ENET_CLK_SEL] for externel clock */
+       clrbits_le32(&iomuxc_regs->gpr[1], IOMUXC_GPR1_ENET_CLK_SEL_MASK);
+
        __raw_writel(IOMUX_SW_PAD_CTRL_GRP_RGMII_TERM_DISABLE,
                     (void *)IOMUX_SW_PAD_CTRL_GRP_RGMII_TERM);
        __raw_writel(IOMUX_SW_PAD_CTRL_GRP_DDR_TYPE_RGMII_1P5V,