aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorIgor Opaniuk <igor.opaniuk@toradex.com>2020-03-27 12:28:17 +0200
committerStefano Babic <sbabic@denx.de>2020-04-07 10:40:19 +0200
commit1efb80c4fcb6ad421f1b494409ecd53c60ac4755 (patch)
tree2f8b4e226604c799ae04b907ba65e05e3762653e /board
parent0965d2ac93db3900ae20ff0b2e176baf672b63cc (diff)
downloadu-boot-1efb80c4fcb6ad421f1b494409ecd53c60ac4755.zip
u-boot-1efb80c4fcb6ad421f1b494409ecd53c60ac4755.tar.gz
u-boot-1efb80c4fcb6ad421f1b494409ecd53c60ac4755.tar.bz2
colibri_imx6: set gpr1 ENET_CLK_SEL
This fixes the issue when PHY auto negotiation never completes. Fixes: 431cd76dd8("colibri_imx6: migrate to DM_ETH") Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Diffstat (limited to 'board')
-rw-r--r--board/toradex/colibri_imx6/colibri_imx6.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/toradex/colibri_imx6/colibri_imx6.c b/board/toradex/colibri_imx6/colibri_imx6.c
index f04b749..d11401e 100644
--- a/board/toradex/colibri_imx6/colibri_imx6.c
+++ b/board/toradex/colibri_imx6/colibri_imx6.c
@@ -354,12 +354,15 @@ int board_phy_config(struct phy_device *phydev)
int setup_fec(void)
{
int ret;
+ struct iomuxc *iomuxc_regs = (struct iomuxc *)IOMUXC_BASE_ADDR;
/* provide the PHY clock from the i.MX 6 */
ret = enable_fec_anatop_clock(0, ENET_50MHZ);
if (ret)
return ret;
+ setbits_le32(&iomuxc_regs->gpr[1], IOMUXC_GPR1_ENET_CLK_SEL_MASK);
+
return 0;
}