net: ethernet: bgmac: Add platform device support
The bcma portion of the driver has been split off into a bcma specific driver. This has been mirrored for the platform driver. The last references to the bcma core struct have been changed into a generic function call. These function calls are wrappers to either the original bcma code or new platform functions that access the same areas via MMIO. This necessitated adding function pointers for both platform and bcma to hide which backend is being used from the generic bgmac code. Signed-off-by: Jon Mason <jon.mason@broadcom.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Tested-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
db791eb297
commit
f6a95a2495
@@ -140,10 +140,18 @@ config BNX2X_SRIOV
|
||||
allows for virtual function acceleration in virtual environments.
|
||||
|
||||
config BGMAC
|
||||
tristate "BCMA bus GBit core support"
|
||||
tristate
|
||||
help
|
||||
This enables the integrated ethernet controller support for many
|
||||
Broadcom (mostly iProc) SoCs. An appropriate bus interface driver
|
||||
needs to be enabled to select this.
|
||||
|
||||
config BGMAC_BCMA
|
||||
tristate "Broadcom iProc GBit BCMA support"
|
||||
depends on BCMA && BCMA_HOST_SOC
|
||||
depends on HAS_DMA
|
||||
depends on BCM47XX || ARCH_BCM_5301X || COMPILE_TEST
|
||||
select BGMAC
|
||||
select PHYLIB
|
||||
select FIXED_PHY
|
||||
---help---
|
||||
@@ -152,6 +160,19 @@ config BGMAC
|
||||
In case of using this driver on BCM4706 it's also requires to enable
|
||||
BCMA_DRIVER_GMAC_CMN to make it work.
|
||||
|
||||
config BGMAC_PLATFORM
|
||||
tristate "Broadcom iProc GBit platform support"
|
||||
depends on HAS_DMA
|
||||
depends on ARCH_BCM_IPROC || COMPILE_TEST
|
||||
depends on OF
|
||||
select BGMAC
|
||||
select PHYLIB
|
||||
select FIXED_PHY
|
||||
default ARCH_BCM_IPROC
|
||||
---help---
|
||||
Say Y here if you want to use the Broadcom iProc Gigabit Ethernet
|
||||
controller through the generic platform interface
|
||||
|
||||
config SYSTEMPORT
|
||||
tristate "Broadcom SYSTEMPORT internal MAC support"
|
||||
depends on OF
|
||||
|
Reference in New Issue
Block a user