rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | # Makefile for Linux PHY drivers and MDIO bus drivers |
| 3 | |
| 4 | libphy-y := phy.o phy-c45.o phy-core.o phy_device.o |
| 5 | mdio-bus-y += mdio_bus.o mdio_device.o |
| 6 | |
| 7 | ifdef CONFIG_MDIO_DEVICE |
| 8 | obj-y += mdio-boardinfo.o |
| 9 | endif |
| 10 | |
| 11 | # PHYLIB implies MDIO_DEVICE, in that case, we have a bunch of circular |
| 12 | # dependencies that does not make it possible to split mdio-bus objects into a |
| 13 | # dedicated loadable module, so we bundle them all together into libphy.ko |
| 14 | ifdef CONFIG_PHYLIB |
| 15 | libphy-y += $(mdio-bus-y) |
| 16 | else |
| 17 | obj-$(CONFIG_MDIO_DEVICE) += mdio-bus.o |
| 18 | endif |
| 19 | libphy-$(CONFIG_SWPHY) += swphy.o |
| 20 | libphy-$(CONFIG_LED_TRIGGER_PHY) += phy_led_triggers.o |
| 21 | |
| 22 | obj-$(CONFIG_PHYLINK) += phylink.o |
| 23 | obj-$(CONFIG_PHYLIB) += libphy.o |
| 24 | |
| 25 | obj-$(CONFIG_MDIO_BCM_IPROC) += mdio-bcm-iproc.o |
| 26 | obj-$(CONFIG_MDIO_BCM_UNIMAC) += mdio-bcm-unimac.o |
| 27 | obj-$(CONFIG_MDIO_BITBANG) += mdio-bitbang.o |
| 28 | obj-$(CONFIG_MDIO_BUS_MUX) += mdio-mux.o |
| 29 | obj-$(CONFIG_MDIO_BUS_MUX_BCM_IPROC) += mdio-mux-bcm-iproc.o |
| 30 | obj-$(CONFIG_MDIO_BUS_MUX_GPIO) += mdio-mux-gpio.o |
| 31 | obj-$(CONFIG_MDIO_BUS_MUX_MMIOREG) += mdio-mux-mmioreg.o |
| 32 | obj-$(CONFIG_MDIO_CAVIUM) += mdio-cavium.o |
| 33 | obj-$(CONFIG_MDIO_GPIO) += mdio-gpio.o |
| 34 | obj-$(CONFIG_MDIO_HISI_FEMAC) += mdio-hisi-femac.o |
| 35 | obj-$(CONFIG_MDIO_I2C) += mdio-i2c.o |
| 36 | obj-$(CONFIG_MDIO_MOXART) += mdio-moxart.o |
| 37 | obj-$(CONFIG_MDIO_OCTEON) += mdio-octeon.o |
| 38 | obj-$(CONFIG_MDIO_SUN4I) += mdio-sun4i.o |
| 39 | obj-$(CONFIG_MDIO_THUNDER) += mdio-thunder.o |
| 40 | obj-$(CONFIG_MDIO_XGENE) += mdio-xgene.o |
| 41 | |
| 42 | obj-$(CONFIG_SFP) += sfp.o |
| 43 | sfp-obj-$(CONFIG_SFP) += sfp-bus.o |
| 44 | obj-y += $(sfp-obj-y) $(sfp-obj-m) |
| 45 | |
| 46 | obj-$(CONFIG_AMD_PHY) += amd.o |
| 47 | obj-$(CONFIG_AQUANTIA_PHY) += aquantia.o |
| 48 | obj-$(CONFIG_AT803X_PHY) += at803x.o |
| 49 | obj-$(CONFIG_BCM63XX_PHY) += bcm63xx.o |
| 50 | obj-$(CONFIG_BCM7XXX_PHY) += bcm7xxx.o |
| 51 | obj-$(CONFIG_BCM87XX_PHY) += bcm87xx.o |
| 52 | obj-$(CONFIG_BCM_CYGNUS_PHY) += bcm-cygnus.o |
| 53 | obj-$(CONFIG_BCM_NET_PHYLIB) += bcm-phy-lib.o |
| 54 | obj-$(CONFIG_BROADCOM_PHY) += broadcom.o |
| 55 | obj-$(CONFIG_CICADA_PHY) += cicada.o |
| 56 | obj-$(CONFIG_CORTINA_PHY) += cortina.o |
| 57 | obj-$(CONFIG_DAVICOM_PHY) += davicom.o |
| 58 | obj-$(CONFIG_DP83640_PHY) += dp83640.o |
| 59 | obj-$(CONFIG_DP83848_PHY) += dp83848.o |
| 60 | obj-$(CONFIG_DP83867_PHY) += dp83867.o |
| 61 | obj-$(CONFIG_FIXED_PHY) += fixed_phy.o |
| 62 | obj-$(CONFIG_ICPLUS_PHY) += icplus.o |
| 63 | obj-$(CONFIG_INTEL_XWAY_PHY) += intel-xway.o |
| 64 | obj-$(CONFIG_LSI_ET1011C_PHY) += et1011c.o |
| 65 | obj-$(CONFIG_LXT_PHY) += lxt.o |
| 66 | obj-$(CONFIG_MARVELL_PHY) += marvell.o |
| 67 | obj-$(CONFIG_MARVELL_88Q_PHY) += marvell-88q.o |
| 68 | obj-$(CONFIG_MARVELL_10G_PHY) += marvell10g.o |
| 69 | obj-$(CONFIG_MESON_GXL_PHY) += meson-gxl.o |
| 70 | obj-$(CONFIG_MICREL_KS8995MA) += spi_ks8995.o |
| 71 | obj-$(CONFIG_MICREL_PHY) += micrel.o |
| 72 | obj-$(CONFIG_MICROCHIP_PHY) += microchip.o |
| 73 | obj-$(CONFIG_MICROSEMI_PHY) += mscc.o |
| 74 | obj-$(CONFIG_NATIONAL_PHY) += national.o |
| 75 | obj-$(CONFIG_NXP_TJA1100_PHY) += nxp-tja1100.o |
| 76 | obj-$(CONFIG_QSEMI_PHY) += qsemi.o |
| 77 | obj-y += realtek.o |
| 78 | obj-$(CONFIG_ROCKCHIP_PHY) += rockchip.o |
| 79 | obj-$(CONFIG_SMSC_PHY) += smsc.o |
| 80 | obj-$(CONFIG_STE10XP) += ste10Xp.o |
| 81 | obj-$(CONFIG_TERANETICS_PHY) += teranetics.o |
| 82 | obj-$(CONFIG_VITESSE_PHY) += vitesse.o |
| 83 | obj-$(CONFIG_XILINX_GMII2RGMII) += xilinx_gmii2rgmii.o |