[PATCH] ARM: stm32: Increase PHY auto-negotiation timeout to 20s on DHSOM
Patrick DELAUNAY
patrick.delaunay at foss.st.com
Mon Nov 15 12:21:28 CET 2021
Hi,
On 11/13/21 3:26 AM, Marek Vasut wrote:
> The Micrel PHYs on known DHSOM based boards take a while to come out
> of reset, increase the auto-negotiation timeout to prevent it from
> timing out in case the ethernet is used right after the board was
> reset.
>
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Patrice Chotard <patrice.chotard at foss.st.com>
> Cc: Patrick Delaunay <patrick.delaunay at foss.st.com>
> ---
> include/configs/stm32mp15_dh_dhsom.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/include/configs/stm32mp15_dh_dhsom.h b/include/configs/stm32mp15_dh_dhsom.h
> index b68e153f10b..d2fe923a33b 100644
> --- a/include/configs/stm32mp15_dh_dhsom.h
> +++ b/include/configs/stm32mp15_dh_dhsom.h
> @@ -21,6 +21,9 @@
> "sf update ${loadaddr} 0x80000 ${filesize} && " \
> "env set filesize1 && env set loadaddr1\0"
>
> +/* PHY needs a longer autoneg timeout */
> +#define PHY_ANEG_TIMEOUT 20000
> +
> #include <configs/stm32mp15_common.h>
>
> #define CONFIG_SPL_TARGET "u-boot.itb"
Reviewed-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
Thanks
Patrick
More information about the U-Boot
mailing list