Makefile 3.8 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
2
# Makefile for Linux PHY drivers and MDIO bus drivers
3

4 5
libphy-y			:= phy.o phy-c45.o phy-core.o phy_device.o \
				   linkmode.o
6 7 8 9 10
mdio-bus-y			+= mdio_bus.o mdio_device.o

ifdef CONFIG_MDIO_DEVICE
obj-y				+= mdio-boardinfo.o
endif
11 12 13 14 15 16 17 18 19

# PHYLIB implies MDIO_DEVICE, in that case, we have a bunch of circular
# dependencies that does not make it possible to split mdio-bus objects into a
# dedicated loadable module, so we bundle them all together into libphy.ko
ifdef CONFIG_PHYLIB
libphy-y			+= $(mdio-bus-y)
else
obj-$(CONFIG_MDIO_DEVICE)	+= mdio-bus.o
endif
20
libphy-$(CONFIG_SWPHY)		+= swphy.o
21
libphy-$(CONFIG_LED_TRIGGER_PHY)	+= phy_led_triggers.o
22

23
obj-$(CONFIG_PHYLINK)		+= phylink.o
A
Andy Fleming 已提交
24
obj-$(CONFIG_PHYLIB)		+= libphy.o
25

A
Andrew Jeffery 已提交
26
obj-$(CONFIG_MDIO_ASPEED)	+= mdio-aspeed.o
27 28 29 30 31 32
obj-$(CONFIG_MDIO_BCM_IPROC)	+= mdio-bcm-iproc.o
obj-$(CONFIG_MDIO_BCM_UNIMAC)	+= mdio-bcm-unimac.o
obj-$(CONFIG_MDIO_BITBANG)	+= mdio-bitbang.o
obj-$(CONFIG_MDIO_BUS_MUX)	+= mdio-mux.o
obj-$(CONFIG_MDIO_BUS_MUX_BCM_IPROC)	+= mdio-mux-bcm-iproc.o
obj-$(CONFIG_MDIO_BUS_MUX_GPIO)	+= mdio-mux-gpio.o
33
obj-$(CONFIG_MDIO_BUS_MUX_MESON_G12A)	+= mdio-mux-meson-g12a.o
34
obj-$(CONFIG_MDIO_BUS_MUX_MMIOREG) += mdio-mux-mmioreg.o
35
obj-$(CONFIG_MDIO_BUS_MUX_MULTIPLEXER) += mdio-mux-multiplexer.o
36 37 38
obj-$(CONFIG_MDIO_CAVIUM)	+= mdio-cavium.o
obj-$(CONFIG_MDIO_GPIO)		+= mdio-gpio.o
obj-$(CONFIG_MDIO_HISI_FEMAC)	+= mdio-hisi-femac.o
R
Russell King 已提交
39
obj-$(CONFIG_MDIO_I2C)		+= mdio-i2c.o
40
obj-$(CONFIG_MDIO_IPQ8064)	+= mdio-ipq8064.o
41
obj-$(CONFIG_MDIO_MOXART)	+= mdio-moxart.o
42
obj-$(CONFIG_MDIO_MSCC_MIIM)	+= mdio-mscc-miim.o
43
obj-$(CONFIG_MDIO_MVUSB)	+= mdio-mvusb.o
44 45 46 47
obj-$(CONFIG_MDIO_OCTEON)	+= mdio-octeon.o
obj-$(CONFIG_MDIO_SUN4I)	+= mdio-sun4i.o
obj-$(CONFIG_MDIO_THUNDER)	+= mdio-thunder.o
obj-$(CONFIG_MDIO_XGENE)	+= mdio-xgene.o
48
obj-$(CONFIG_MDIO_XPCS)		+= mdio-xpcs.o
49

50 51
obj-$(CONFIG_NETWORK_PHY_TIMESTAMPING) += mii_timestamper.o

R
Russell King 已提交
52
obj-$(CONFIG_SFP)		+= sfp.o
53 54 55
sfp-obj-$(CONFIG_SFP)		+= sfp-bus.o
obj-y				+= $(sfp-obj-y) $(sfp-obj-m)

56
obj-$(CONFIG_ADIN_PHY)		+= adin.o
57
obj-$(CONFIG_AMD_PHY)		+= amd.o
58
aquantia-objs			+= aquantia_main.o
59 60 61
ifdef CONFIG_HWMON
aquantia-objs			+= aquantia_hwmon.o
endif
62
obj-$(CONFIG_AQUANTIA_PHY)	+= aquantia.o
63
obj-$(CONFIG_AX88796B_PHY)	+= ax88796b.o
64
obj-$(CONFIG_AT803X_PHY)	+= at803x.o
65
obj-$(CONFIG_BCM63XX_PHY)	+= bcm63xx.o
66
obj-$(CONFIG_BCM7XXX_PHY)	+= bcm7xxx.o
67
obj-$(CONFIG_BCM87XX_PHY)	+= bcm87xx.o
68
obj-$(CONFIG_BCM_CYGNUS_PHY)	+= bcm-cygnus.o
69 70
obj-$(CONFIG_BCM_NET_PHYLIB)	+= bcm-phy-lib.o
obj-$(CONFIG_BROADCOM_PHY)	+= broadcom.o
71
obj-$(CONFIG_BCM84881_PHY)	+= bcm84881.o
72
obj-$(CONFIG_CICADA_PHY)	+= cicada.o
73
obj-$(CONFIG_CORTINA_PHY)	+= cortina.o
74
obj-$(CONFIG_DAVICOM_PHY)	+= davicom.o
75
obj-$(CONFIG_DP83640_PHY)	+= dp83640.o
76
obj-$(CONFIG_DP83822_PHY)	+= dp83822.o
77
obj-$(CONFIG_DP83TC811_PHY)	+= dp83tc811.o
78
obj-$(CONFIG_DP83848_PHY)	+= dp83848.o
79
obj-$(CONFIG_DP83867_PHY)	+= dp83867.o
D
Dan Murphy 已提交
80
obj-$(CONFIG_DP83869_PHY)	+= dp83869.o
81 82 83 84 85 86
obj-$(CONFIG_FIXED_PHY)		+= fixed_phy.o
obj-$(CONFIG_ICPLUS_PHY)	+= icplus.o
obj-$(CONFIG_INTEL_XWAY_PHY)	+= intel-xway.o
obj-$(CONFIG_LSI_ET1011C_PHY)	+= et1011c.o
obj-$(CONFIG_LXT_PHY)		+= lxt.o
obj-$(CONFIG_MARVELL_PHY)	+= marvell.o
87
obj-$(CONFIG_MARVELL_10G_PHY)	+= marvell10g.o
88
obj-$(CONFIG_MESON_GXL_PHY)	+= meson-gxl.o
89
obj-$(CONFIG_MICREL_KS8995MA)	+= spi_ks8995.o
90
obj-$(CONFIG_MICREL_PHY)	+= micrel.o
91
obj-$(CONFIG_MICROCHIP_PHY)	+= microchip.o
92
obj-$(CONFIG_MICROCHIP_T1_PHY)	+= microchip_t1.o
93
obj-$(CONFIG_MICROSEMI_PHY)	+= mscc/
94
obj-$(CONFIG_NATIONAL_PHY)	+= national.o
95
obj-$(CONFIG_NXP_TJA11XX_PHY)	+= nxp-tja11xx.o
96 97
obj-$(CONFIG_QSEMI_PHY)		+= qsemi.o
obj-$(CONFIG_REALTEK_PHY)	+= realtek.o
98
obj-$(CONFIG_RENESAS_PHY)	+= uPD60620.o
99
obj-$(CONFIG_ROCKCHIP_PHY)	+= rockchip.o
100 101 102 103
obj-$(CONFIG_SMSC_PHY)		+= smsc.o
obj-$(CONFIG_STE10XP)		+= ste10Xp.o
obj-$(CONFIG_TERANETICS_PHY)	+= teranetics.o
obj-$(CONFIG_VITESSE_PHY)	+= vitesse.o
104
obj-$(CONFIG_XILINX_GMII2RGMII) += xilinx_gmii2rgmii.o