Skip to content

Fix Ethernet boot in am335x

Faiz Abbas u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11net: Add priv_pdata to eth_pdatainclude/net.h+2 -01 reply
2/11net: ti: cpsw: Move cpsw_phy_sel() to _probe()drivers/net/ti/cpsw.c include/cpsw.h+17 -171 reply
3/11net: ti: cpsw: Convert cpsw_platform_data to a pointer in cpsw_privdrivers/net/ti/cpsw.c+69 -671 reply
4/11net: ti: cpsw-common: Isolate getting syscon address from assigning maciddrivers/net/ti/cpsw-common.c drivers/net/ti/cpsw.c include/cpsw.h+64 -731 reply
5/11net: ti: cpsw: Block off ofdata_to_platdata with OF_CONTROLdrivers/net/ti/cpsw.c+11 -71 reply
6/11net: ti: cpsw: Enable DM_FLAG_PRE_RELOCdrivers/net/ti/cpsw.c+1 -11 reply
7/11board: ti: am335x: Add platdata for cpsw in SPLboard/ti/am335x/board.c drivers/net/ti/cpsw.c include/cpsw.h+66 -182 replies
7/11board: ti: am335x: Add platdata for cpsw in SPL+0 -00 replies
8/11configs: am335x_evm: Reduce size of SPLconfigs/am335x_evm_defconfig+4 -12 replies
9/11configs: am335x_evm: Add Support for SPL_ETHconfigs/am335x_evm_defconfig+1 -01 reply
10/11configs: am335x_evm: Update VCI Stringconfigs/am335x_evm_defconfig+1 -12 replies
11/11board: ti: am335x: Remove non DM_ETH codeboard/ti/am335x/board.c+0 -1511 reply

Reviews trailers per patch

1 of 12 patches has a Reviewed-by or Acked-by.

PatchTom Rini
1/11
2/11
3/11
4/11
5/11
6/11
7/11
7/11
8/11
9/11
10/11R-b
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [PATCH 00/11] Fix Ethernet boot in am335x

The following patches fix ethernet boot in am335x.

Enabling OF_CONTROL in SPL makes it overflow the sram size. To avoid this, I am using static platdata in the am335x board file instead of the fdtdec_*() calls used in ofdata_to_platdata().

Patches 1-5 isolate the two operations of getting platform data (all of which should happen in _ofdata_to_platdata()) and initial configurations (all of which should happen in _probe()).

Patch 6 makes sure the cpsw driver gets probed in SPL. Patch 7 adds static platdata to the am335 board file. Patches 8-10 makes changes in the config to make space for and enable ETH_SUPPORT in SPL.
Patch 11 removes non-DM_ETH code from the am335x board file.

Tested ethernet boot and tftp in am335x-evm. Regression tested on dra71x-evm.

Faiz Abbas (11):
net: Add priv_pdata to eth_pdata
net: ti: cpsw: Move cpsw_phy_sel() to _probe()
net: ti: cpsw: Convert cpsw_platform_data to a pointer in cpsw_priv
net: ti: cpsw-common: Isolate getting syscon address from assigning
macid
net: ti: cpsw: Block off ofdata_to_platdata with OF_CONTROL
net: ti: cpsw: Enable DM_FLAG_PRE_RELOC
board: ti: am335x: Add platdata for cpsw in SPL
configs: am335x_evm: Reduce size of SPL
configs: am335x_evm: Add Support for SPL_ETH
configs: am335x_evm: Update VCI String
board: ti: am335x: Remove non DM_ETH code

 board/ti/am335x/board.c      | 170 ++++++-----------------------
 configs/am335x_evm_defconfig |   8 +-
 drivers/net/ti/cpsw-common.c | 127 ++++++++++------------
 drivers/net/ti/cpsw.c        | 202 ++++++++++++++++-------------------
 include/cpsw.h               |  25 ++++-
 include/net.h                |   2 +
 6 files changed, 217 insertions(+), 317 deletions(-)
Signature · 1 line
2.19.2