diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2019-06-21 15:52:11 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2019-06-21 19:45:56 +0200 |
commit | 9f085d59d7beae7fc77f4b49cd3403869327cf71 (patch) | |
tree | 38747fad3c65db88d0a56c8d85e666fee3c01ef9 /recipes-bsp | |
parent | 7c80051e8c10787cdbb86bda5944f3a2d985bc56 (diff) |
u-boot-mainline: add patch, auto neg. timeout
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'recipes-bsp')
-rw-r--r-- | recipes-bsp/u-boot-mainline/files/0001-apalis_imx6-increase-phy-autoneg-timeout.patch | 34 | ||||
-rw-r--r-- | recipes-bsp/u-boot-mainline/u-boot-common.inc | 2 |
2 files changed, 36 insertions, 0 deletions
diff --git a/recipes-bsp/u-boot-mainline/files/0001-apalis_imx6-increase-phy-autoneg-timeout.patch b/recipes-bsp/u-boot-mainline/files/0001-apalis_imx6-increase-phy-autoneg-timeout.patch new file mode 100644 index 0000000..f3d4554 --- /dev/null +++ b/recipes-bsp/u-boot-mainline/files/0001-apalis_imx6-increase-phy-autoneg-timeout.patch @@ -0,0 +1,34 @@ +From 4bb2dccd69eaf8e25dd200f9a6deb883631db5c1 Mon Sep 17 00:00:00 2001 +From: Igor Opaniuk <igor.opaniuk@toradex.com> +Date: Fri, 21 Jun 2019 14:00:24 +0300 +Subject: [PATCH] apalis_imx6: increase phy autoneg timeout + +Default value (4000ms) of PHY_ANEG_TIMEOUT for Micrel KSZ9031 contoller +isn't sufficient to finish auto-negotiation, which sometimes leads to +timeout errors: + +Apalis iMX6 # dhcp +FEC Waiting for PHY auto negotiation to complete......... TIMEOUT ! + +Increase the auto-negotiation time-out to 8000ms. + +Signed-off-by: Igor Opaniuk <igor.opaniuk@toradex.com> +--- + include/configs/apalis_imx6.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/configs/apalis_imx6.h b/include/configs/apalis_imx6.h +index 4b0a3fb26b..246d618442 100644 +--- a/include/configs/apalis_imx6.h ++++ b/include/configs/apalis_imx6.h +@@ -58,6 +58,7 @@ + #define IMX_FEC_BASE ENET_BASE_ADDR + #define CONFIG_FEC_XCV_TYPE RGMII + #define CONFIG_ETHPRIME "FEC" ++#define PHY_ANEG_TIMEOUT 8000 /* PHY needs longer aneg time */ + #define CONFIG_FEC_MXC_PHYADDR 6 + #define CONFIG_TFTP_TSIZE + +-- +2.13.6 + diff --git a/recipes-bsp/u-boot-mainline/u-boot-common.inc b/recipes-bsp/u-boot-mainline/u-boot-common.inc index 0d56392..688a4ae 100644 --- a/recipes-bsp/u-boot-mainline/u-boot-common.inc +++ b/recipes-bsp/u-boot-mainline/u-boot-common.inc @@ -43,6 +43,8 @@ SRC_URI += " \ file://0004-colibri-imx6ull-support-building-with-DM_VIDEO-y.patch \ file://0005-ARM-dts-colibri-imx6ull-extend-lcdif-node.patch \ file://0006-configs-colibri-imx6ull-switch-to-DM_VIDEO.patch \ + \ + file://0001-apalis_imx6-increase-phy-autoneg-timeout.patch \ " S = "${WORKDIR}/git" |