1# SPDX-License-Identifier: GPL-2.0-only 2# 3# MDIO Layer Configuration 4# 5 6menuconfig MDIO_DEVICE 7 tristate "MDIO bus device drivers" 8 help 9 MDIO devices and driver infrastructure code. 10 11if MDIO_DEVICE 12 13config MDIO_BUS 14 tristate 15 default m if PHYLIB=m 16 default MDIO_DEVICE 17 help 18 This internal symbol is used for link time dependencies and it 19 reflects whether the mdio_bus/mdio_device code is built as a 20 loadable module or built-in. 21 22if MDIO_BUS 23 24config MDIO_DEVRES 25 tristate 26 27config MDIO_SUN4I 28 tristate "Allwinner sun4i MDIO interface support" 29 depends on ARCH_SUNXI || COMPILE_TEST 30 help 31 This driver supports the MDIO interface found in the network 32 interface units of the Allwinner SoC that have an EMAC (A10, 33 A12, A10s, etc.) 34 35config MDIO_XGENE 36 tristate "APM X-Gene SoC MDIO bus controller" 37 depends on ARCH_XGENE || COMPILE_TEST 38 help 39 This module provides a driver for the MDIO busses found in the 40 APM X-Gene SoC's. 41 42config MDIO_ASPEED 43 tristate "ASPEED MDIO bus controller" 44 depends on ARCH_ASPEED || COMPILE_TEST 45 depends on OF_MDIO && HAS_IOMEM 46 help 47 This module provides a driver for the independent MDIO bus 48 controllers found in the ASPEED AST2600 SoC. This is a driver for the 49 third revision of the ASPEED MDIO register interface - the first two 50 revisions are the "old" and "new" interfaces found in the AST2400 and 51 AST2500, embedded in the MAC. For legacy reasons, FTGMAC100 driver 52 continues to drive the embedded MDIO controller for the AST2400 and 53 AST2500 SoCs, so say N if AST2600 support is not required. 54 55config MDIO_BITBANG 56 tristate "Bitbanged MDIO buses" 57 help 58 This module implements the MDIO bus protocol in software, 59 for use by low level drivers that export the ability to 60 drive the relevant pins. 61 62 If in doubt, say N. 63 64config MDIO_BCM_IPROC 65 tristate "Broadcom iProc MDIO bus controller" 66 depends on ARCH_BCM_IPROC || COMPILE_TEST 67 depends on HAS_IOMEM && OF_MDIO 68 default ARCH_BCM_IPROC 69 help 70 This module provides a driver for the MDIO busses found in the 71 Broadcom iProc SoC's. 72 73config MDIO_BCM_UNIMAC 74 tristate "Broadcom UniMAC MDIO bus controller" 75 depends on HAS_IOMEM 76 help 77 This module provides a driver for the Broadcom UniMAC MDIO busses. 78 This hardware can be found in the Broadcom GENET Ethernet MAC 79 controllers as well as some Broadcom Ethernet switches such as the 80 Starfighter 2 switches. 81 82config MDIO_CAVIUM 83 tristate 84 85config MDIO_GPIO 86 tristate "GPIO lib-based bitbanged MDIO buses" 87 depends on MDIO_BITBANG 88 depends on GPIOLIB || COMPILE_TEST 89 help 90 Supports GPIO lib-based MDIO busses. 91 92 To compile this driver as a module, choose M here: the module 93 will be called mdio-gpio. 94 95config MDIO_HISI_FEMAC 96 tristate "Hisilicon FEMAC MDIO bus controller" 97 depends on HAS_IOMEM && OF_MDIO 98 help 99 This module provides a driver for the MDIO busses found in the 100 Hisilicon SoC that have an Fast Ethernet MAC. 101 102config MDIO_I2C 103 tristate 104 depends on I2C 105 help 106 Support I2C based PHYs. This provides a MDIO bus bridged 107 to I2C to allow PHYs connected in I2C mode to be accessed 108 using the existing infrastructure. 109 110 This is library mode. 111 112config MDIO_MVUSB 113 tristate "Marvell USB to MDIO Adapter" 114 depends on USB 115 select MDIO_DEVRES 116 help 117 A USB to MDIO converter present on development boards for 118 Marvell's Link Street family of Ethernet switches. 119 120config MDIO_MSCC_MIIM 121 tristate "Microsemi MIIM interface support" 122 depends on HAS_IOMEM 123 select MDIO_DEVRES 124 help 125 This driver supports the MIIM (MDIO) interface found in the network 126 switches of the Microsemi SoCs; it is recommended to switch on 127 CONFIG_HIGH_RES_TIMERS 128 129config MDIO_MOXART 130 tristate "MOXA ART MDIO interface support" 131 depends on ARCH_MOXART || COMPILE_TEST 132 help 133 This driver supports the MDIO interface found in the network 134 interface units of the MOXA ART SoC 135 136config MDIO_OCTEON 137 tristate "Octeon and some ThunderX SOCs MDIO buses" 138 depends on (64BIT && OF_MDIO) || COMPILE_TEST 139 depends on HAS_IOMEM 140 select MDIO_CAVIUM 141 select MDIO_DEVRES 142 help 143 This module provides a driver for the Octeon and ThunderX MDIO 144 buses. It is required by the Octeon and ThunderX ethernet device 145 drivers on some systems. 146 147config MDIO_IPQ4019 148 tristate "Qualcomm IPQ4019 MDIO interface support" 149 depends on HAS_IOMEM && OF_MDIO 150 help 151 This driver supports the MDIO interface found in Qualcomm 152 IPQ40xx series Soc-s. 153 154config MDIO_IPQ8064 155 tristate "Qualcomm IPQ8064 MDIO interface support" 156 depends on HAS_IOMEM && OF_MDIO 157 depends on MFD_SYSCON 158 help 159 This driver supports the MDIO interface found in the network 160 interface units of the IPQ8064 SoC 161 162config MDIO_THUNDER 163 tristate "ThunderX SOCs MDIO buses" 164 depends on 64BIT 165 depends on PCI 166 select MDIO_CAVIUM 167 help 168 This driver supports the MDIO interfaces found on Cavium 169 ThunderX SoCs when the MDIO bus device appears as a PCI 170 device. 171 172comment "MDIO Multiplexers" 173 174config MDIO_BUS_MUX 175 tristate 176 depends on OF_MDIO 177 help 178 This module provides a driver framework for MDIO bus 179 multiplexers which connect one of several child MDIO busses 180 to a parent bus. Switching between child busses is done by 181 device specific drivers. 182 183config MDIO_BUS_MUX_MESON_G12A 184 tristate "Amlogic G12a based MDIO bus multiplexer" 185 depends on ARCH_MESON || COMPILE_TEST 186 depends on OF_MDIO && HAS_IOMEM && COMMON_CLK 187 select MDIO_BUS_MUX 188 default m if ARCH_MESON 189 help 190 This module provides a driver for the MDIO multiplexer/glue of 191 the amlogic g12a SoC. The multiplexers connects either the external 192 or the internal MDIO bus to the parent bus. 193 194config MDIO_BUS_MUX_BCM_IPROC 195 tristate "Broadcom iProc based MDIO bus multiplexers" 196 depends on OF && OF_MDIO && (ARCH_BCM_IPROC || COMPILE_TEST) 197 select MDIO_BUS_MUX 198 default ARCH_BCM_IPROC 199 help 200 This module provides a driver for MDIO bus multiplexers found in 201 iProc based Broadcom SoCs. This multiplexer connects one of several 202 child MDIO bus to a parent bus. Buses could be internal as well as 203 external and selection logic lies inside the same multiplexer. 204 205config MDIO_BUS_MUX_GPIO 206 tristate "GPIO controlled MDIO bus multiplexers" 207 depends on OF_GPIO && OF_MDIO 208 select MDIO_BUS_MUX 209 help 210 This module provides a driver for MDIO bus multiplexers that 211 are controlled via GPIO lines. The multiplexer connects one of 212 several child MDIO busses to a parent bus. Child bus 213 selection is under the control of GPIO lines. 214 215config MDIO_BUS_MUX_MULTIPLEXER 216 tristate "MDIO bus multiplexer using kernel multiplexer subsystem" 217 depends on OF_MDIO 218 select MULTIPLEXER 219 select MDIO_BUS_MUX 220 help 221 This module provides a driver for MDIO bus multiplexer 222 that is controlled via the kernel multiplexer subsystem. The 223 bus multiplexer connects one of several child MDIO busses to 224 a parent bus. Child bus selection is under the control of 225 the kernel multiplexer subsystem. 226 227config MDIO_BUS_MUX_MMIOREG 228 tristate "MMIO device-controlled MDIO bus multiplexers" 229 depends on OF_MDIO && HAS_IOMEM 230 select MDIO_BUS_MUX 231 help 232 This module provides a driver for MDIO bus multiplexers that 233 are controlled via a simple memory-mapped device, like an FPGA. 234 The multiplexer connects one of several child MDIO busses to a 235 parent bus. Child bus selection is under the control of one of 236 the FPGA's registers. 237 238 Currently, only 8/16/32 bits registers are supported. 239 240 241endif 242endif 243