Skip to content

Commit

Permalink
stmmac: add ipq806x glue layer
Browse files Browse the repository at this point in the history
The ethernet controller available in IPQ806x is a Synopsys DesignWare
Gigabit MAC IP core, already supported by the stmmac driver.

This glue layer implements some platform specific settings required to
get the controller working on an IPQ806x based platform.

Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Mathieu Olivari authored and David S. Miller committed May 31, 2015
1 parent 2773238 commit b1c1721
Show file tree
Hide file tree
Showing 3 changed files with 380 additions and 0 deletions.
14 changes: 14 additions & 0 deletions drivers/net/ethernet/stmicro/stmmac/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ if STMMAC_ETH
config STMMAC_PLATFORM
tristate "STMMAC Platform bus support"
depends on STMMAC_ETH
select MFD_SYSCON
default y
---help---
This selects the platform specific bus support for the stmmac driver.
Expand All @@ -36,6 +37,19 @@ config DWMAC_GENERIC
platform specific code to function or is using platform
data for setup.

config DWMAC_IPQ806X
tristate "QCA IPQ806x DWMAC support"
default ARCH_QCOM
depends on OF
select MFD_SYSCON
help
Support for QCA IPQ806X DWMAC Ethernet.

This selects the IPQ806x SoC glue layer support for the stmmac
device driver. This driver does not use any of the hardware
acceleration features available on this SoC. Network devices
will behave like standard non-accelerated ethernet interfaces.

config DWMAC_LPC18XX
tristate "NXP LPC18xx/43xx DWMAC support"
default ARCH_LPC18XX
Expand Down
1 change: 1 addition & 0 deletions drivers/net/ethernet/stmicro/stmmac/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ stmmac-objs:= stmmac_main.o stmmac_ethtool.o stmmac_mdio.o ring_mode.o \

# Ordering matters. Generic driver must be last.
obj-$(CONFIG_STMMAC_PLATFORM) += stmmac-platform.o
obj-$(CONFIG_DWMAC_IPQ806X) += dwmac-ipq806x.o
obj-$(CONFIG_DWMAC_LPC18XX) += dwmac-lpc18xx.o
obj-$(CONFIG_DWMAC_MESON) += dwmac-meson.o
obj-$(CONFIG_DWMAC_ROCKCHIP) += dwmac-rk.o
Expand Down
Loading

0 comments on commit b1c1721

Please sign in to comment.