162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci# Makefile for Linux PHY drivers
362306a36Sopenharmony_ci
462306a36Sopenharmony_cilibphy-y			:= phy.o phy-c45.o phy-core.o phy_device.o \
562306a36Sopenharmony_ci				   linkmode.o
662306a36Sopenharmony_cimdio-bus-y			+= mdio_bus.o mdio_device.o
762306a36Sopenharmony_ci
862306a36Sopenharmony_ciifdef CONFIG_MDIO_DEVICE
962306a36Sopenharmony_ciobj-y				+= mdio-boardinfo.o
1062306a36Sopenharmony_ciendif
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci# PHYLIB implies MDIO_DEVICE, in that case, we have a bunch of circular
1362306a36Sopenharmony_ci# dependencies that does not make it possible to split mdio-bus objects into a
1462306a36Sopenharmony_ci# dedicated loadable module, so we bundle them all together into libphy.ko
1562306a36Sopenharmony_ciifdef CONFIG_PHYLIB
1662306a36Sopenharmony_cilibphy-y			+= $(mdio-bus-y)
1762306a36Sopenharmony_ci# the stubs are built-in whenever PHYLIB is built-in or module
1862306a36Sopenharmony_ciobj-y				+= stubs.o
1962306a36Sopenharmony_cielse
2062306a36Sopenharmony_ciobj-$(CONFIG_MDIO_DEVICE)	+= mdio-bus.o
2162306a36Sopenharmony_ciendif
2262306a36Sopenharmony_ciobj-$(CONFIG_MDIO_DEVRES)	+= mdio_devres.o
2362306a36Sopenharmony_cilibphy-$(CONFIG_SWPHY)		+= swphy.o
2462306a36Sopenharmony_cilibphy-$(CONFIG_LED_TRIGGER_PHY)	+= phy_led_triggers.o
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ciobj-$(CONFIG_PHYLINK)		+= phylink.o
2762306a36Sopenharmony_ciobj-$(CONFIG_PHYLIB)		+= libphy.o
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ciobj-$(CONFIG_NETWORK_PHY_TIMESTAMPING) += mii_timestamper.o
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ciobj-$(CONFIG_SFP)		+= sfp.o
3262306a36Sopenharmony_cisfp-obj-$(CONFIG_SFP)		+= sfp-bus.o
3362306a36Sopenharmony_ciobj-y				+= $(sfp-obj-y) $(sfp-obj-m)
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ciobj-$(CONFIG_ADIN_PHY)		+= adin.o
3662306a36Sopenharmony_ciobj-$(CONFIG_ADIN1100_PHY)	+= adin1100.o
3762306a36Sopenharmony_ciobj-$(CONFIG_AMD_PHY)		+= amd.o
3862306a36Sopenharmony_ciaquantia-objs			+= aquantia_main.o
3962306a36Sopenharmony_ciifdef CONFIG_HWMON
4062306a36Sopenharmony_ciaquantia-objs			+= aquantia_hwmon.o
4162306a36Sopenharmony_ciendif
4262306a36Sopenharmony_ciobj-$(CONFIG_AQUANTIA_PHY)	+= aquantia.o
4362306a36Sopenharmony_ciobj-$(CONFIG_AT803X_PHY)	+= at803x.o
4462306a36Sopenharmony_ciobj-$(CONFIG_AX88796B_PHY)	+= ax88796b.o
4562306a36Sopenharmony_ciobj-$(CONFIG_BCM54140_PHY)	+= bcm54140.o
4662306a36Sopenharmony_ciobj-$(CONFIG_BCM63XX_PHY)	+= bcm63xx.o
4762306a36Sopenharmony_ciobj-$(CONFIG_BCM7XXX_PHY)	+= bcm7xxx.o
4862306a36Sopenharmony_ciobj-$(CONFIG_BCM84881_PHY)	+= bcm84881.o
4962306a36Sopenharmony_ciobj-$(CONFIG_BCM87XX_PHY)	+= bcm87xx.o
5062306a36Sopenharmony_ciobj-$(CONFIG_BCM_CYGNUS_PHY)	+= bcm-cygnus.o
5162306a36Sopenharmony_ciobj-$(CONFIG_BCM_NET_PHYLIB)	+= bcm-phy-lib.o
5262306a36Sopenharmony_ciobj-$(CONFIG_BCM_NET_PHYPTP)	+= bcm-phy-ptp.o
5362306a36Sopenharmony_ciobj-$(CONFIG_BROADCOM_PHY)	+= broadcom.o
5462306a36Sopenharmony_ciobj-$(CONFIG_CICADA_PHY)	+= cicada.o
5562306a36Sopenharmony_ciobj-$(CONFIG_CORTINA_PHY)	+= cortina.o
5662306a36Sopenharmony_ciobj-$(CONFIG_DAVICOM_PHY)	+= davicom.o
5762306a36Sopenharmony_ciobj-$(CONFIG_DP83640_PHY)	+= dp83640.o
5862306a36Sopenharmony_ciobj-$(CONFIG_DP83822_PHY)	+= dp83822.o
5962306a36Sopenharmony_ciobj-$(CONFIG_DP83848_PHY)	+= dp83848.o
6062306a36Sopenharmony_ciobj-$(CONFIG_DP83867_PHY)	+= dp83867.o
6162306a36Sopenharmony_ciobj-$(CONFIG_DP83869_PHY)	+= dp83869.o
6262306a36Sopenharmony_ciobj-$(CONFIG_DP83TC811_PHY)	+= dp83tc811.o
6362306a36Sopenharmony_ciobj-$(CONFIG_DP83TD510_PHY)	+= dp83td510.o
6462306a36Sopenharmony_ciobj-$(CONFIG_FIXED_PHY)		+= fixed_phy.o
6562306a36Sopenharmony_ciobj-$(CONFIG_ICPLUS_PHY)	+= icplus.o
6662306a36Sopenharmony_ciobj-$(CONFIG_INTEL_XWAY_PHY)	+= intel-xway.o
6762306a36Sopenharmony_ciobj-$(CONFIG_LSI_ET1011C_PHY)	+= et1011c.o
6862306a36Sopenharmony_ciobj-$(CONFIG_LXT_PHY)		+= lxt.o
6962306a36Sopenharmony_ciobj-$(CONFIG_MARVELL_10G_PHY)	+= marvell10g.o
7062306a36Sopenharmony_ciobj-$(CONFIG_MARVELL_PHY)	+= marvell.o
7162306a36Sopenharmony_ciobj-$(CONFIG_MARVELL_88Q2XXX_PHY)	+= marvell-88q2xxx.o
7262306a36Sopenharmony_ciobj-$(CONFIG_MARVELL_88X2222_PHY)	+= marvell-88x2222.o
7362306a36Sopenharmony_ciobj-$(CONFIG_MAXLINEAR_GPHY)	+= mxl-gpy.o
7462306a36Sopenharmony_ciobj-$(CONFIG_MEDIATEK_GE_PHY)	+= mediatek-ge.o
7562306a36Sopenharmony_ciobj-$(CONFIG_MEDIATEK_GE_SOC_PHY)	+= mediatek-ge-soc.o
7662306a36Sopenharmony_ciobj-$(CONFIG_MESON_GXL_PHY)	+= meson-gxl.o
7762306a36Sopenharmony_ciobj-$(CONFIG_MICREL_KS8995MA)	+= spi_ks8995.o
7862306a36Sopenharmony_ciobj-$(CONFIG_MICREL_PHY)	+= micrel.o
7962306a36Sopenharmony_ciobj-$(CONFIG_MICROCHIP_PHY)	+= microchip.o
8062306a36Sopenharmony_ciobj-$(CONFIG_MICROCHIP_T1_PHY)	+= microchip_t1.o
8162306a36Sopenharmony_ciobj-$(CONFIG_MICROCHIP_T1S_PHY) += microchip_t1s.o
8262306a36Sopenharmony_ciobj-$(CONFIG_MICROSEMI_PHY)	+= mscc/
8362306a36Sopenharmony_ciobj-$(CONFIG_MOTORCOMM_PHY)	+= motorcomm.o
8462306a36Sopenharmony_ciobj-$(CONFIG_NATIONAL_PHY)	+= national.o
8562306a36Sopenharmony_ciobj-$(CONFIG_NCN26000_PHY)	+= ncn26000.o
8662306a36Sopenharmony_ciobj-$(CONFIG_NXP_C45_TJA11XX_PHY)	+= nxp-c45-tja11xx.o
8762306a36Sopenharmony_ciobj-$(CONFIG_NXP_CBTX_PHY)	+= nxp-cbtx.o
8862306a36Sopenharmony_ciobj-$(CONFIG_NXP_TJA11XX_PHY)	+= nxp-tja11xx.o
8962306a36Sopenharmony_ciobj-$(CONFIG_QSEMI_PHY)		+= qsemi.o
9062306a36Sopenharmony_ciobj-$(CONFIG_REALTEK_PHY)	+= realtek.o
9162306a36Sopenharmony_ciobj-$(CONFIG_RENESAS_PHY)	+= uPD60620.o
9262306a36Sopenharmony_ciobj-$(CONFIG_ROCKCHIP_PHY)	+= rockchip.o
9362306a36Sopenharmony_ciobj-$(CONFIG_SMSC_PHY)		+= smsc.o
9462306a36Sopenharmony_ciobj-$(CONFIG_STE10XP)		+= ste10Xp.o
9562306a36Sopenharmony_ciobj-$(CONFIG_TERANETICS_PHY)	+= teranetics.o
9662306a36Sopenharmony_ciobj-$(CONFIG_VITESSE_PHY)	+= vitesse.o
9762306a36Sopenharmony_ciobj-$(CONFIG_XILINX_GMII2RGMII) += xilinx_gmii2rgmii.o
98