xref: /linux/drivers/net/ethernet/ti/Makefile (revision 6e7fd890f1d6ac83805409e9c346240de2705584)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the TI network device drivers.
4#
5
6obj-$(CONFIG_TI_CPSW) += cpsw-common.o
7obj-$(CONFIG_TI_DAVINCI_EMAC) += cpsw-common.o
8obj-$(CONFIG_TI_CPSW_SWITCHDEV) += cpsw-common.o
9
10obj-$(CONFIG_TLAN) += tlan.o
11obj-$(CONFIG_TI_DAVINCI_EMAC) += ti_davinci_emac.o
12ti_davinci_emac-y := davinci_emac.o davinci_cpdma.o
13obj-$(CONFIG_TI_DAVINCI_MDIO) += davinci_mdio.o
14obj-$(CONFIG_TI_CPSW_PHY_SEL) += cpsw-phy-sel.o
15obj-$(CONFIG_TI_CPTS) += cpts.o
16obj-$(CONFIG_TI_CPSW) += ti_cpsw.o
17ti_cpsw-y := cpsw.o davinci_cpdma.o cpsw_ale.o cpsw_priv.o cpsw_sl.o cpsw_ethtool.o
18obj-$(CONFIG_TI_CPSW_SWITCHDEV) += ti_cpsw_new.o
19ti_cpsw_new-y := cpsw_switchdev.o cpsw_new.o davinci_cpdma.o cpsw_ale.o cpsw_sl.o cpsw_priv.o cpsw_ethtool.o
20
21obj-$(CONFIG_TI_KEYSTONE_NETCP) += keystone_netcp.o
22keystone_netcp-y := netcp_core.o cpsw_ale.o
23obj-$(CONFIG_TI_KEYSTONE_NETCP_ETHSS) += keystone_netcp_ethss.o
24keystone_netcp_ethss-y := netcp_ethss.o netcp_sgmii.o netcp_xgbepcsr.o cpsw_ale.o
25
26obj-$(CONFIG_TI_K3_CPPI_DESC_POOL) += k3-cppi-desc-pool.o
27
28obj-$(CONFIG_TI_K3_AM65_CPSW_NUSS) += ti-am65-cpsw-nuss.o
29ti-am65-cpsw-nuss-y := am65-cpsw-nuss.o cpsw_sl.o am65-cpsw-ethtool.o cpsw_ale.o
30ti-am65-cpsw-nuss-$(CONFIG_TI_AM65_CPSW_QOS) += am65-cpsw-qos.o
31ti-am65-cpsw-nuss-$(CONFIG_TI_K3_AM65_CPSW_SWITCHDEV) += am65-cpsw-switchdev.o
32obj-$(CONFIG_TI_K3_AM65_CPTS) += am65-cpts.o
33
34obj-$(CONFIG_TI_ICSSG_PRUETH) += icssg-prueth.o icssg.o
35icssg-prueth-y := icssg/icssg_prueth.o icssg/icssg_switchdev.o
36
37obj-$(CONFIG_TI_ICSSG_PRUETH_SR1) += icssg-prueth-sr1.o icssg.o
38icssg-prueth-sr1-y := icssg/icssg_prueth_sr1.o
39
40icssg-y := icssg/icssg_common.o \
41	   icssg/icssg_classifier.o \
42	   icssg/icssg_queues.o \
43	   icssg/icssg_config.o \
44	   icssg/icssg_mii_cfg.o \
45	   icssg/icssg_stats.o \
46	   icssg/icssg_ethtool.o
47
48obj-$(CONFIG_TI_ICSS_IEP) += icssg/icss_iep.o
49