Skip to content

highbank: Update to driver model

Andre Przywara u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6arm: highbank: Limit FDT and initrd load addressesinclude/configs/highbank.h+4 -02 replies
2/6arm: highbank: Enable OF_CONTROLarch/arm/Kconfig board/highbank/highbank.c configs/highbank_defconfig +1 more+19 -21 reply
3/6net: calxedagmac: Convert to DM_ETHarch/arm/Kconfig board/highbank/highbank.c configs/highbank_defconfig +5 more+137 -812 replies
4/6arm: highbank: Remove artificial SDRAM sizeinclude/configs/highbank.h+0 -61 reply
5/6arm: highbank: Do DRAM init from DTarch/arm/Kconfig board/highbank/highbank.c configs/highbank_defconfig+9 -31 reply
6/6arm: highbank: Update maintainershipboard/highbank/MAINTAINERS+1 -11 reply

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchTom RiniRamon Fried
1/6R-b
2/6
3/6R-b
4/6
5/6
6/6

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

Read the v1 thread

Cover letter [PATCH 0/6] highbank: Update to driver model

The Calxeda Highbank and Midway systems have not been updated in a while, so were gathering more and more warning messages about not being DM compliant over time.

To avoid the support being removed, update the board to comply with modern U-Boot standards:
- Enable OF_CONTROL, and use the DTB provided by previous firmware stages.
- Convert the XGMAC network driver over to the driver model.
- Read the actual DRAM size (as detect by the management processor) from the DTB and use that to populate the memory node, and U-Boot internal idea of DRAM.

Access to SATA drives broke with commit 66c54f1a3e46 ("scsi: Simplify scsi_read()/_write()") before the v2020.01 release, and remains non-functional with this series for now. Reverting that commit (and massaging it a bit) brought it back to life. I will send a proper patch once I wrapped my head around the SCSI/SATA/AHCI/DM-block connections.

To test this build, you can use chain-loading on an existing installation (firmware updates in flash on those boards are not trivial):

$ mkimage -A arm -O u-boot -T standalone -C none -a 0x8000 -e 0x8000 \
  -d u-boot.bin -n U-Boot /srv/tftp/u-boot-highbank.img
=> tftpboot 0x8000 u-boot-highbank.img
=> bootm 0x8000

Cheers,
Andre

Andre Przywara (6):
arm: highbank: Limit FDT and initrd load addresses
arm: highbank: Enable OF_CONTROL
net: calxedagmac: Convert to DM_ETH
arm: highbank: Remove artificial SDRAM size
arm: highbank: Do DRAM init from DT
arm: highbank: Update maintainership

 arch/arm/Kconfig             |  11 +-
 board/highbank/MAINTAINERS   |   2 +-
 board/highbank/highbank.c    |  32 +++---
 configs/highbank_defconfig   |   4 +-
 drivers/net/Kconfig          |   7 ++
 drivers/net/calxedaxgmac.c   | 192 +++++++++++++++++++++++------------
 include/configs/highbank.h   |  13 +--
 include/netdev.h             |   1 -
 scripts/config_whitelist.txt |   1 -
 9 files changed, 170 insertions(+), 93 deletions(-)
Signature · 1 line
2.17.5