GNU Linux-libre 6.8.7-gnu
[releases.git] / drivers / usb / typec / ucsi / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 CFLAGS_trace.o                          := -I$(src)
3
4 obj-$(CONFIG_TYPEC_UCSI)                += typec_ucsi.o
5
6 typec_ucsi-y                            := ucsi.o
7
8 typec_ucsi-$(CONFIG_DEBUG_FS)           += debugfs.o
9
10 typec_ucsi-$(CONFIG_TRACING)            += trace.o
11
12 ifneq ($(CONFIG_POWER_SUPPLY),)
13         typec_ucsi-y                    += psy.o
14 endif
15
16 ifneq ($(CONFIG_TYPEC_DP_ALTMODE),)
17         typec_ucsi-y                    += displayport.o
18 endif
19
20 obj-$(CONFIG_UCSI_ACPI)                 += ucsi_acpi.o
21 obj-$(CONFIG_UCSI_CCG)                  += ucsi_ccg.o
22 obj-$(CONFIG_UCSI_STM32G0)              += ucsi_stm32g0.o
23 obj-$(CONFIG_UCSI_PMIC_GLINK)           += ucsi_glink.o