Every other uclass is in its own file. It makes sense to put the Ethernet
uclass code into its own file too. The result is less code in each file, and
it becomes easier to see which code is related to driver model.

This series creates a new common file to hold the common code, moves the
driver-model into its own file and tidies up.

Some boards use PCI to obtain Ethernet. With driver model, unless this is
mentioned in the device tree, the Ethernet device will not be present on
initial startup. So we need to probe PCI just in case there is a device
there.


Simon Glass (8):
  tegra: Report errors from PCI init
  net: Don't call board/cpu_eth_init() with driver model
  net: Move common init into a new eth_common.c file
  net: Move environment functions to the common file
  net: Move remaining common functions to eth_common.c
  net: Move driver-model code into its own file
  net: Rename eth.c to eth_lecacy.c
  net: Probe PCI before looking for ethernet devices

 drivers/pci/pci_tegra.c     |   6 +-
 net/Makefile                |   7 +-
 net/{eth.c => eth-uclass.c} | 601 +-------------------------------------------
 net/eth_common.c            | 166 ++++++++++++
 net/eth_internal.h          |  40 +++
 net/eth_legacy.c            | 439 ++++++++++++++++++++++++++++++++
 6 files changed, 664 insertions(+), 595 deletions(-)
 rename net/{eth.c => eth-uclass.c} (50%)
 create mode 100644 net/eth_common.c
 create mode 100644 net/eth_internal.h
 create mode 100644 net/eth_legacy.c

-- 
2.6.0.rc2.230.g3dd15c0

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to