Skip to content

Commit 7090425

Browse files
jbrun3tdavem330
authored andcommitted
net: phy: add amlogic g12a mdio mux support
Add support for the mdio mux and internal phy glue of the g12a SoC family Reviewed-by: Neil Armstrong <[email protected]> # clk parts Signed-off-by: Jerome Brunet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 867934e commit 7090425

File tree

3 files changed

+392
-0
lines changed

3 files changed

+392
-0
lines changed

drivers/net/phy/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,17 @@ config MDIO_BUS_MUX_GPIO
7676
several child MDIO busses to a parent bus. Child bus
7777
selection is under the control of GPIO lines.
7878

79+
config MDIO_BUS_MUX_MESON_G12A
80+
tristate "Amlogic G12a based MDIO bus multiplexer"
81+
depends on ARCH_MESON || COMPILE_TEST
82+
depends on OF_MDIO && HAS_IOMEM && COMMON_CLK
83+
select MDIO_BUS_MUX
84+
default m if ARCH_MESON
85+
help
86+
This module provides a driver for the MDIO multiplexer/glue of
87+
the amlogic g12a SoC. The multiplexers connects either the external
88+
or the internal MDIO bus to the parent bus.
89+
7990
config MDIO_BUS_MUX_MMIOREG
8091
tristate "MMIO device-controlled MDIO bus multiplexers"
8192
depends on OF_MDIO && HAS_IOMEM

drivers/net/phy/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ obj-$(CONFIG_MDIO_BITBANG) += mdio-bitbang.o
2828
obj-$(CONFIG_MDIO_BUS_MUX) += mdio-mux.o
2929
obj-$(CONFIG_MDIO_BUS_MUX_BCM_IPROC) += mdio-mux-bcm-iproc.o
3030
obj-$(CONFIG_MDIO_BUS_MUX_GPIO) += mdio-mux-gpio.o
31+
obj-$(CONFIG_MDIO_BUS_MUX_MESON_G12A) += mdio-mux-meson-g12a.o
3132
obj-$(CONFIG_MDIO_BUS_MUX_MMIOREG) += mdio-mux-mmioreg.o
3233
obj-$(CONFIG_MDIO_BUS_MUX_MULTIPLEXER) += mdio-mux-multiplexer.o
3334
obj-$(CONFIG_MDIO_CAVIUM) += mdio-cavium.o

0 commit comments

Comments
 (0)