rockchip: rk3288-tinker: Fix slow Ethernet initializion
authorJonas Karlman <jonas@kwiboo.se>
Tue, 5 Nov 2024 16:00:35 +0000 (16:00 +0000)
committerTom Rini <trini@konsulko.com>
Sat, 11 Jan 2025 00:56:15 +0000 (18:56 -0600)
commit57237c7f41d21b09c95421e00f6dd370a550a257
tree97dbe555b1dfe07b8fa14ec336b5f3d265cb6e7d
parenta0a880942b03fb1e6b8abe1d83ed20bf6c55a8b8
rockchip: rk3288-tinker: Fix slow Ethernet initializion

For some reason the Ethernet PHY reset delay is set to 1 second, this
cause an unneccecery long boot delay.

Tinker Board use RTL8211E or RTL8211F Ethernet PHY, datasheet list an
initial 10ms delay and then a 30-76ms delay before accessing registers.

Change to use 80ms delay instead of a full second to speed up Ethernet
initializion in U-Boot.

Also enable PHY_REALTEK, DM_ETH_PHY and PHY_GIGE to improve Ethernet PHY
support in U-Boot.

Before:

  1,404,971    960,924  eth_common_init
  2,438,830  1,033,859  eth_initialize
  2,444,449      5,619  main_loop
  2,445,153        704  cli_loop

After:

  1,404,987    960,710  eth_common_init
  1,519,110    114,123  eth_initialize
  1,524,734      5,624  main_loop
  1,525,452        718  cli_loop

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3288-tinker-u-boot.dtsi
configs/tinker-rk3288_defconfig
configs/tinker-s-rk3288_defconfig