rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | LOCAL_DIR := $(GET_LOCAL_DIR) |
| 2 | MODULE := $(LOCAL_DIR) |
| 3 | |
| 4 | |
| 5 | MODULE_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 | |
| 19 | ifeq ($(SPI_NAND_PROJECT), y) |
| 20 | MODULE_DEPS += \ |
| 21 | lib/bio \ |
| 22 | lib/partition \ |
| 23 | lib/nftl |
| 24 | |
| 25 | include $(LOCAL_DIR)/nandx/Nandx.mk |
| 26 | endif |
| 27 | |
| 28 | ifeq ($(WITH_PMIC_MT6398), 1) |
| 29 | MODULE_SRCS += $(LOCAL_DIR)/pmic/pmic_6398.c |
| 30 | endif |
| 31 | |
| 32 | ifeq ($(WITH_PMIC_BD71828), 1) |
| 33 | MODULE_SRCS += $(LOCAL_DIR)/pmic/bd71828.c |
| 34 | endif |
| 35 | |
| 36 | ifeq ($(WITH_CLKSQ_OFF),1) |
| 37 | GLOBAL_DEFINES += WITH_CLKSQ_OFF=$(WITH_CLKSQ_OFF) |
| 38 | endif |
| 39 | |
| 40 | ifeq ($(WITH_VCORE_I2C_BUCK), 1) |
| 41 | MODULE_SRCS += $(LOCAL_DIR)/pmic/rt5748.c |
| 42 | endif |
| 43 | |
| 44 | ifeq ($(WITH_VCORE_PWM_BUCK), 1) |
| 45 | MODULE_SRCS += $(LOCAL_DIR)/pmic/pwm_buck.c |
| 46 | endif |
| 47 | |
| 48 | ifeq ($(WITH_USB_MD1122), 1) |
| 49 | MODULE_SRCS += $(LOCAL_DIR)/usb/u3phy-i2c.c |
| 50 | MODULE_SRCS += $(LOCAL_DIR)/usb/md1122.c |
| 51 | else |
| 52 | MODULE_SRCS += $(LOCAL_DIR)/usb/usbphy.c |
| 53 | endif |
| 54 | |
| 55 | |
| 56 | MODULE_EXTRA_OBJS += \ |
| 57 | $(LOCAL_DIR)/../lib/libdevinfo.o |
| 58 | |
| 59 | MODULE_DEPS += \ |
| 60 | $(LOCAL_DIR)/../../../../dramk_8512/dram |
| 61 | |
| 62 | include make/module.mk |