blob: c239ec715a67fb896553707c94883cbc18a4cc7e [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001# Define source file lists to SRC_LIST
2SRC_LIST = driver/peripheral/src/dcl_rtc.c \
3 driver/peripheral/src/dcl_aux.c \
4 driver/peripheral/src/auxmain.c \
5 driver/peripheral/src/i2c.c \
6 driver/peripheral/src/rtc.c \
7 driver/peripheral/src/drv_comm.c \
8 driver/peripheral/src/drv_hisr.c \
9 driver/peripheral/src/lpwr.c \
10 driver/peripheral/src/dcl_gpio.c \
11 driver/peripheral/src/dcl_i2c.c \
12 driver/peripheral/src/dcl_wdt.c \
13 driver/peripheral/src/dcl_gpt.c \
14 driver/peripheral/src/dcl_gpt_hw.c \
15 driver/peripheral/src/dcl_pwm.c \
16 driver/peripheral/src/dcl_adc.c \
17 driver/peripheral/src/adc.c \
18 driver/peripheral/src/adcmeasure.c \
19 driver/peripheral/src/adcsche.c \
20 driver/peripheral/src/gpio.c \
21 driver/peripheral/src/wdt.c \
22 driver/peripheral/src/pwm.c \
23 driver/peripheral/src/dcl_15_segment.c \
24 driver/peripheral/src/alerter.c \
25 driver/peripheral/src/dcl_chr_det.c \
26 driver/peripheral/src/dcl_pmu.c \
27 driver/peripheral/src/dcl_pmu_common.c \
28 driver/peripheral/src/dcl_pw.c \
29 driver/peripheral/src/kbdmain.c\
30 driver/peripheral/src/DclS_kbd.c\
31 driver/peripheral/src/DclH_kbd.c\
32 driver/peripheral/src/dbgprint.c\
33 driver/peripheral/src/Dcl_SeriPortDrv.c\
34 driver/peripheral/src/uart.c\
35 driver/peripheral/src/uart_vfifo.c\
36 driver/peripheral/src/uart_handler.c\
37 driver/peripheral/src/i2c_dual.c \
38 driver/peripheral/src/spi.c \
39 driver/peripheral/src/spi_hal.c \
40 driver/peripheral/src/hif_v2.c \
41 driver/peripheral/src/dcl_hts.c \
42 driver/peripheral/src/dcl_sts.c \
43 driver/peripheral/src/f32k_clk.c \
44 driver/peripheral/src/dcl_f32k_clk.c \
45 driver/peripheral/src/nli_arb.c\
46 driver/peripheral/src/gpio_setting.c
47# accdet
48ifneq ($(filter __ACCDET_SUPPORT__, $(strip $(MODULE_DEFS))),)
49 ifeq ($(filter __L1_STANDALONE__, $(strip $(MODULE_DEFS))),)
50 SRC_LIST += driver/peripheral/src/accdet.c
51 endif
52endif
53ifneq ($(filter __ACCDET_HYBRID_SOLUTION_SUPPORT__, $(strip $(MODULE_DEFS))),)
54 ifeq ($(filter __L1_STANDALONE__, $(strip $(MODULE_DEFS))),)
55 SRC_LIST += driver/peripheral/src/accdet.c
56 endif
57endif
58
59
60# PMU
61ifeq ($(strip $(PMIC)),MT6235PMU)
62 SRC_LIST += driver/peripheral/src/dcl_pmu6235.c
63endif
64ifneq ($(filter MT6236PMU MT6921PMU, $(strip $(PMIC))),)
65 SRC_LIST += driver/peripheral/src/dcl_pmu6236.c
66 SRC_LIST += driver/peripheral/src/pmic_MT6236PMU_drv.c
67endif
68ifeq ($(strip $(PMIC)),MT6253PMU)
69 SRC_LIST += driver/peripheral/src/dcl_pmu6253.c
70endif
71ifeq ($(strip $(PMIC)),MT6326_CCCI)
72 SRC_LIST += driver/peripheral/src/dcl_pmic6326_ccci.c
73endif
74ifeq ($(strip $(PMIC)),MT6326)
75 SRC_LIST += driver/peripheral/src/dcl_pmic6326.c
76endif
77ifeq ($(strip $(PMIC)),MT6251PMU)
78 SRC_LIST += driver/peripheral/src/dcl_pmu6251.c
79 SRC_LIST += driver/peripheral/src/pmic_MT6251PMU_drv.c
80endif
81ifeq ($(strip $(PMIC)),MT6252PMU)
82 SRC_LIST += driver/peripheral/src/dcl_pmu6252.c
83endif
84ifeq ($(strip $(PMIC)),MT6253ELPMU)
85 SRC_LIST += driver/peripheral/src/dcl_pmu6252.c
86endif
87ifeq ($(strip $(PMIC)),MT6256PMU)
88 SRC_LIST += driver/peripheral/src/dcl_pmu6256.c \
89 driver/peripheral/src/dcl_pmu6256_init.c
90endif
91ifeq ($(strip $(PMIC)),MT6255PMU)
92 SRC_LIST += driver/peripheral/src/dcl_pmu6255.c \
93 driver/peripheral/src/dcl_pmu6255_init.c
94endif
95ifeq ($(strip $(PMIC)),MT6276PMU)
96 SRC_LIST += driver/peripheral/src/dcl_pmu6276.c
97 SRC_LIST += driver/peripheral/src/pmic_MT6276PMU_drv.c
98endif
99ifeq ($(strip $(PMIC)),MT6573PMU)
100 SRC_LIST += driver/peripheral/src/dcl_pmu6573.c
101endif
102ifeq ($(strip $(PMIC)),MT6329)
103 SRC_LIST += driver/peripheral/src/dcl_pmic6329.c \
104 driver/peripheral/src/dcl_pmic6329_init.c
105endif
106ifeq ($(strip $(PMIC)),MT6327)
107 SRC_LIST += driver/peripheral/src/dcl_pmic6327.c \
108 driver/peripheral/src/dcl_pmic6327_init.c \
109 driver/peripheral/src/i2c_pmic.c
110endif
111
112ifneq ($(filter __DMA_UART_VIRTUAL_FIFO__, $(strip $(MODULE_DEFS))),)
113 SRC_LIST += driver/peripheral/src/uart_vfifo.c
114endif
115
116# HIF
117# for HQA HIF/NFI concurrency test
118ifneq ($(filter __NAND_FLASH_HARDWARE_TEST__, $(strip $(MODULE_DEFS))),)
119 ifneq ($(filter __MAUI_BASIC__, $(strip $(MODULE_DEFS))),)
120 SRC_LIST += driver/peripheral/src/hif_v2_test.c
121 endif
122endif
123
124COMP_DEFS += DRV_HTS_OFF
125COMP_DEFS += DRV_STS_OFF
126
127
128# Define include path lists to INC_DIR
129INC_DIR = \
130 driver/peripheral/inc \
131 interface/driver/connectivity/usb_driver \
132 driver/connectivity/usb_driver/inc \
133 driver/drv/include \
134 ./custom/driver/drv/ast \
135 $(strip $(BUILD_CODEGENDIR)) \
136 $(call CUSTOM_FLD_MAPPING,./custom/driver/drv/misc_drv)
137# Define the specified compile options to COMP_DEFS
138COMP_DEFS = __DRV_COMM_INIT_DEINIT__
139
140# Define the source file search paths to SRC_PATH
141SRC_PATH = driver/peripheral/src
142