1
0
Fork 0
alistair23-linux/arch/powerpc/platforms/chrp
Florian Fainelli c3a07134e6 mv643xx_eth: convert to use the Marvell Orion MDIO driver
This patch converts the Marvell MV643XX ethernet driver to use the
Marvell Orion MDIO driver. As a result, PowerPC and ARM platforms
registering the Marvell MV643XX ethernet driver are also updated to
register a Marvell Orion MDIO driver. This driver voluntarily overlaps
with the Marvell Ethernet shared registers because it will use a subset
of this shared register (shared_base + 0x4 to shared_base + 0x84). The
Ethernet driver is also updated to look up for a PHY device using the
Orion MDIO bus driver.

For ARM and PowerPC we register a single instance of the "mvmdio" driver
in the system like it used to be done with the use of the "shared_smi"
platform_data cookie on ARM.

Note that it is safe to register the mvmdio driver only for the "ge00"
instance of the driver because this "ge00" interface is guaranteed to
always be explicitely registered by consumers of
arch/arm/plat-orion/common.c and other instances (ge01, ge10 and ge11)
were all pointing their shared_smi to ge00. For PowerPC the in-tree
Device Tree Source files mention only one MV643XX ethernet MAC instance
so the MDIO bus driver is registered only when id == 0.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-03-22 10:25:15 -04:00
..
Kconfig pcspkr: Cleanup Kconfig dependencies 2011-06-09 15:01:41 +02:00
Makefile [POWERPC] disallow building powermac and tsi108 without PCI 2007-06-29 01:57:00 -05:00
chrp.h [POWERPC] Make pci_read_irq_line the default 2006-12-04 16:00:04 +11:00
gg2.h [POWERPC] Copy over headers from arch/ppc to arch/powerpc that we need 2007-08-22 22:43:29 -05:00
nvram.c powerpc/chrp/nvram.c: Add of_node_put to avoid memory leak 2010-09-02 14:07:34 +10:00
pci.c POWERPC: drivers: remove __dev* attributes. 2013-01-03 15:57:04 -08:00
pegasos_eth.c mv643xx_eth: convert to use the Marvell Orion MDIO driver 2013-03-22 10:25:15 -04:00
setup.c powerpc/mpic: Remove duplicate MPIC_WANTS_RESET flag 2012-02-23 10:50:00 +11:00
smp.c POWERPC: drivers: remove __dev* attributes. 2013-01-03 15:57:04 -08:00
time.c powerpc/nvram: Move things out of asm/nvram.h 2010-11-30 15:09:19 +11:00