blob: 812c020115f669b61badf0aa8a1b549bd439f45e [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001LOCAL_DIR := $(GET_LOCAL_DIR)
2MODULE := $(LOCAL_DIR)
3
4
5MODULE_SRCS += \
6 $(LOCAL_DIR)/uart/uart.c \
7 $(LOCAL_DIR)/pll/pll.c \
8 $(LOCAL_DIR)/spm/spm_mtcmos.c \
9 $(LOCAL_DIR)/wdt/mtk_wdt.c \
10 $(LOCAL_DIR)/i2c/mt_i2c.c \
11 $(LOCAL_DIR)/usb/mtu3.c \
12 $(LOCAL_DIR)/usb/mtu3_qmu.c \
13 $(LOCAL_DIR)/gic/mt_gic_v3.c \
14 $(LOCAL_DIR)/gic/mt_gic.S \
15 $(LOCAL_DIR)/key/mtk_key.c \
16 $(LOCAL_DIR)/trng/mtk_trng.c \
17 $(LOCAL_DIR)/pwm/pwm.c \
18
19ifeq ($(SPI_NAND_PROJECT), y)
20 MODULE_DEPS += \
21 lib/bio \
22 lib/partition \
23 lib/nftl
24
25 include $(LOCAL_DIR)/nandx/Nandx.mk
26endif
27
28ifeq ($(WITH_PMIC_MT6398), 1)
29 MODULE_SRCS += $(LOCAL_DIR)/pmic/pmic_6398.c
30endif
31
32ifeq ($(WITH_PMIC_BD71828), 1)
33 MODULE_SRCS += $(LOCAL_DIR)/pmic/bd71828.c
34endif
35
36ifeq ($(WITH_CLKSQ_OFF),1)
37 GLOBAL_DEFINES += WITH_CLKSQ_OFF=$(WITH_CLKSQ_OFF)
38endif
39
40ifeq ($(WITH_VCORE_I2C_BUCK), 1)
41 MODULE_SRCS += $(LOCAL_DIR)/pmic/rt5748.c
42endif
43
44ifeq ($(WITH_VCORE_PWM_BUCK), 1)
45 MODULE_SRCS += $(LOCAL_DIR)/pmic/pwm_buck.c
46endif
47
48ifeq ($(WITH_USB_MD1122), 1)
49 MODULE_SRCS += $(LOCAL_DIR)/usb/u3phy-i2c.c
50 MODULE_SRCS += $(LOCAL_DIR)/usb/md1122.c
51else
52 MODULE_SRCS += $(LOCAL_DIR)/usb/usbphy.c
53endif
54
55
56MODULE_EXTRA_OBJS += \
57 $(LOCAL_DIR)/../lib/libdevinfo.o
58
59MODULE_DEPS += \
60 $(LOCAL_DIR)/../../../../dramk_8512/dram
61
62include make/module.mk