[PATCH v2 0/2] gianfar: prevent resource conflict
Renaud Barbier
renaud.barbier at ge.com
Tue Jun 25 09:09:58 EDT 2013
This patch v2 avoids resource conflicts between the gianfar port
instances by substituting dev_request_mem_region for
dev_get_mem_region.
In addition, it separates the MDIO buses from their Ethernet device
by creating MDIO bus devices to access the external bus and TBI
interfaces.
This patch is tested on the P2020RDB for which there are 3 MDIO buses:
- The main MDIO bus "gfar-mdio", linked to port eTSEC1 is used to
connect external PHYs for all ports and map the internal TBI
interface of eTSEC1.
- The MDIO buses "gfar-tpiphy" map TBI interface registers on all
remaining ports.
Renaud Barbier (2):
ppc: gianfar MDIO buses
P2020RDB: update build configuration
arch/ppc/boards/freescale-p2020rdb/p2020rdb.c | 13 ++-
arch/ppc/configs/p2020rdb_defconfig | 4 +-
arch/ppc/mach-mpc85xx/eth-devices.c | 44 +++++---
arch/ppc/mach-mpc85xx/include/mach/gianfar.h | 4 +
drivers/net/gianfar.c | 146 +++++++++++++++++++------
drivers/net/gianfar.h | 13 ++-
6 files changed, 165 insertions(+), 59 deletions(-)
More information about the barebox
mailing list