public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/3] DM9000 support for multiple interfaces
@ 2014-10-20 14:59 Andrew Ruder
  2014-10-20 14:59 ` [U-Boot] [PATCH 1/3] dm9000: mark dump_regs() function as unused Andrew Ruder
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Andrew Ruder @ 2014-10-20 14:59 UTC (permalink / raw)
  To: u-boot

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@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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2015-08-11 21:10 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-20 14:59 [U-Boot] [PATCH 0/3] DM9000 support for multiple interfaces Andrew Ruder
2014-10-20 14:59 ` [U-Boot] [PATCH 1/3] dm9000: mark dump_regs() function as unused Andrew Ruder
2014-10-20 19:10   ` Tom Rini
2014-10-20 14:59 ` [U-Boot] [PATCH 2/3] dm9000: Add struct eth_device * to SROM functions Andrew Ruder
2014-10-20 15:22   ` Stefano Babic
2014-10-20 19:17   ` Tom Rini
2014-10-20 19:39     ` Andrew Ruder
2014-10-20 14:59 ` [U-Boot] [PATCH 3/3] dm9000: rework dm9000 to support multiple devices Andrew Ruder
2014-10-20 15:45   ` Andrew Ruder
2014-10-20 18:11 ` [U-Boot] [PATCH 3/3 V2] " Andrew Ruder
2014-10-20 20:00   ` Tom Rini
2014-10-20 20:16     ` Andrew Ruder
2014-10-20 23:47       ` Tom Rini
2015-08-11 17:58         ` Joe Hershberger
2015-08-11 21:10           ` Andrew Ruder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox