blob: 5096e15a4361787c5377553e0a0ee1649a55f63b [file] [log] [blame]
developer6d207b42022-07-07 19:30:22 +08001#
developerd07accc2022-09-07 18:43:03 +08002# Copyright (c) 2022-2023, MediaTek Inc. All rights reserved.
developer6d207b42022-07-07 19:30:22 +08003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7MTK_PLAT := plat/mediatek
8MTK_PLAT_SOC := ${MTK_PLAT}/${PLAT}
9MTK_SOC := ${PLAT}
10
11include plat/mediatek/build_helpers/mtk_build_helpers.mk
12include drivers/arm/gic/v3/gicv3.mk
13include lib/xlat_tables_v2/xlat_tables.mk
14
15PLAT_INCLUDES := -I${MTK_PLAT}/common \
16 -I${MTK_PLAT}/include \
developer3b31b932022-09-05 16:07:00 +080017 -I${MTK_PLAT}/include/${ARCH_VERSION} \
developer6d207b42022-07-07 19:30:22 +080018 -I${MTK_PLAT} \
19 -I${MTK_PLAT_SOC}/include \
20 -Idrivers/arm/gic \
21
22MODULES-y += $(MTK_PLAT)/common
developerafdd96a2022-09-29 10:41:26 +080023MODULES-y += $(MTK_PLAT)/common/lpm
developer6d207b42022-07-07 19:30:22 +080024MODULES-y += $(MTK_PLAT)/lib/mtk_init
25MODULES-y += $(MTK_PLAT)/lib/pm
developera7c9bf32022-07-29 16:38:43 +080026MODULES-y += $(MTK_PLAT)/lib/system_reset
Chungying Lua566cc92023-03-15 14:16:28 +080027MODULES-y += $(MTK_PLAT)/drivers/apusys
developer369b0392022-09-20 14:50:36 +080028MODULES-y += $(MTK_PLAT)/drivers/audio
developerbdeb0ba2022-07-08 14:48:56 +080029MODULES-y += $(MTK_PLAT)/drivers/cirq
developer1d69df52022-09-05 17:36:36 +080030MODULES-y += $(MTK_PLAT)/drivers/cpu_pm
developer86a8c562022-09-05 17:44:02 +080031MODULES-y += $(MTK_PLAT)/drivers/dcm
Fengquan Chen67f11f02022-08-17 10:42:15 +080032MODULES-y += $(MTK_PLAT)/drivers/dfd
developer7fa15de2022-07-11 19:03:35 +080033MODULES-y += $(MTK_PLAT)/drivers/dp
developer880fb172022-09-05 19:08:59 +080034MODULES-y += $(MTK_PLAT)/drivers/emi_mpu
developer66002552022-07-08 13:58:33 +080035MODULES-y += $(MTK_PLAT)/drivers/gic600
Jianguo Zhangbe99c732022-07-29 13:55:03 +080036MODULES-y += $(MTK_PLAT)/drivers/gpio
Chengci Xudb1e75b2022-07-20 16:20:15 +080037MODULES-y += $(MTK_PLAT)/drivers/iommu
developer768f1122022-09-16 11:30:43 +080038MODULES-y += $(MTK_PLAT)/drivers/mcusys
Hui Liu39ea6142022-07-28 20:28:32 +080039MODULES-y += $(MTK_PLAT)/drivers/pmic
40MODULES-y += $(MTK_PLAT)/drivers/pmic_wrap
Riven Chen1a4a5252022-10-17 13:11:27 +080041MODULES-y += $(MTK_PLAT)/drivers/ptp3
Song Fana4efd722022-07-25 19:50:52 +080042MODULES-y += $(MTK_PLAT)/drivers/rtc
developerd07accc2022-09-07 18:43:03 +080043MODULES-y += $(MTK_PLAT)/drivers/spm
developerc193d632022-07-08 13:16:17 +080044MODULES-y += $(MTK_PLAT)/drivers/timer
Shaocheng Wang7aa95b12022-12-15 18:42:51 +080045MODULES-y += $(MTK_PLAT)/drivers/usb
developer3b31b932022-09-05 16:07:00 +080046MODULES-y += $(MTK_PLAT)/helpers
47MODULES-y += $(MTK_PLAT)/topology
developer6d207b42022-07-07 19:30:22 +080048
49PLAT_BL_COMMON_SOURCES := common/desc_image_load.c \
50 drivers/ti/uart/aarch64/16550_console.S \
51 lib/bl_aux_params/bl_aux_params.c
52
53BL31_SOURCES += drivers/delay_timer/delay_timer.c \
54 drivers/delay_timer/generic_delay_timer.c \
55 lib/cpus/aarch64/cortex_a55.S \
56 lib/cpus/aarch64/cortex_a78.S \
57 ${GICV3_SOURCES} \
58 ${XLAT_TABLES_LIB_SRCS} \
59 plat/common/plat_gicv3.c \
60 plat/common/plat_psci_common.c \
61 plat/common/aarch64/crash_console_helpers.S \
62 ${MTK_PLAT}/common/mtk_plat_common.c \
63 ${MTK_PLAT}/common/params_setup.c \
developer3b31b932022-09-05 16:07:00 +080064 $(MTK_PLAT)/$(MTK_SOC)/plat_mmap.c
developer6d207b42022-07-07 19:30:22 +080065
66include plat/mediatek/build_helpers/mtk_build_helpers_epilogue.mk
67
68include lib/coreboot/coreboot.mk