forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/usb/typec/ucsi/Makefile
....@@ -1,10 +1,19 @@
11 # SPDX-License-Identifier: GPL-2.0
2
-CFLAGS_trace.o := -I$(src)
2
+CFLAGS_trace.o := -I$(src)
33
4
-obj-$(CONFIG_TYPEC_UCSI) += typec_ucsi.o
4
+obj-$(CONFIG_TYPEC_UCSI) += typec_ucsi.o
55
6
-typec_ucsi-y := ucsi.o
6
+typec_ucsi-y := ucsi.o
77
8
-typec_ucsi-$(CONFIG_TRACING) += trace.o
8
+typec_ucsi-$(CONFIG_TRACING) += trace.o
99
10
-obj-$(CONFIG_UCSI_ACPI) += ucsi_acpi.o
10
+ifneq ($(CONFIG_POWER_SUPPLY),)
11
+ typec_ucsi-y += psy.o
12
+endif
13
+
14
+ifneq ($(CONFIG_TYPEC_DP_ALTMODE),)
15
+ typec_ucsi-y += displayport.o
16
+endif
17
+
18
+obj-$(CONFIG_UCSI_ACPI) += ucsi_acpi.o
19
+obj-$(CONFIG_UCSI_CCG) += ucsi_ccg.o