[U-Boot] [PATCH 0/3] DM9000 support for multiple interfaces

Andrew Ruder andrew.ruder at elecsyscorp.com
Mon Oct 20 16:59:42 CEST 2014


This is a rework of the DM9000 driver to support registering
interfaces dynamically (i.e. determine how many ethernet chips we have
at boot and register 0, 1, 2, or more).  It was tested on a
yet-to-be-submitted board which is based on the PXA270 + 0, 1, or 2
DM9000 chips.

To maintain backwards compatibility with older board files, we add a
new initialize function taking the io address, data address, and
availability of a SROM chip.  The old initialize function is now a
shim around this new initialize function but provides the parameters
based on the old DM9000 preprocessor symbols.

I have compile-tested this on all the arm-based boards.

Cc: Joe Hershberger <joe.hershberger at gmail.com>

Andrew Ruder (3):
  dm9000: mark dump_regs() function as unused
  dm9000: Add struct eth_device * to SROM functions
  dm9000: rework dm9000 to support multiple devices

 board/trizepsiv/eeprom.c |   5 +-
 drivers/net/dm9000x.c    | 382 +++++++++++++++++++++++++++--------------------
 include/dm9000.h         |   8 +-
 include/netdev.h         |   1 +
 4 files changed, 224 insertions(+), 172 deletions(-)

-- 
2.1.1



More information about the U-Boot mailing list