blob: 4d5a100f10252f0ff6d654e8c21f25b89a6fca04 [file] [log] [blame]
developer65014b82015-04-13 14:47:57 +08001#
developer8c327e82022-05-29 22:25:44 +08002# Copyright (c) 2015-2022, ARM Limited and Contributors. All rights reserved.
developer65014b82015-04-13 14:47:57 +08003#
dp-armfa3cf0b2017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
developer65014b82015-04-13 14:47:57 +08005#
6
7MTK_PLAT := plat/mediatek
8MTK_PLAT_SOC := ${MTK_PLAT}/${PLAT}
9
10PLAT_INCLUDES := -I${MTK_PLAT}/common/ \
developer8c327e82022-05-29 22:25:44 +080011 -I${MTK_PLAT}/include/ \
Koan-Sin Tan1d2b6392016-04-18 15:17:57 +080012 -Iinclude/plat/arm/common/aarch64 \
developereee29802016-05-11 18:45:20 +080013 -I${MTK_PLAT_SOC}/drivers/crypt/ \
developer65014b82015-04-13 14:47:57 +080014 -I${MTK_PLAT_SOC}/drivers/mtcmos/ \
15 -I${MTK_PLAT_SOC}/drivers/pmic/ \
16 -I${MTK_PLAT_SOC}/drivers/rtc/ \
17 -I${MTK_PLAT_SOC}/drivers/spm/ \
18 -I${MTK_PLAT_SOC}/drivers/timer/ \
Julius Wernere3a000d2018-03-12 13:26:49 -070019 -I${MTK_PLAT_SOC}/drivers/wdt/ \
developer65014b82015-04-13 14:47:57 +080020 -I${MTK_PLAT_SOC}/include/
21
Soby Mathewcc037c12016-04-08 16:42:58 +010022PLAT_BL_COMMON_SOURCES := lib/xlat_tables/xlat_tables_common.c \
23 lib/xlat_tables/aarch64/xlat_tables.c \
Koan-Sin Tan1d2b6392016-04-18 15:17:57 +080024 plat/arm/common/arm_gicv2.c \
developerea201172019-05-02 20:33:58 +080025 plat/common/plat_gicv2.c \
26 plat/common/aarch64/crash_console_helpers.S
developer65014b82015-04-13 14:47:57 +080027
Julius Werner1f363212019-05-30 17:34:08 -070028BL31_SOURCES += common/desc_image_load.c \
29 drivers/arm/cci/cci.c \
Koan-Sin Tan1d2b6392016-04-18 15:17:57 +080030 drivers/arm/gic/common/gic_common.c \
31 drivers/arm/gic/v2/gicv2_main.c \
32 drivers/arm/gic/v2/gicv2_helpers.c \
developer65014b82015-04-13 14:47:57 +080033 drivers/delay_timer/delay_timer.c \
Antonio Nino Diaz02a09af2016-05-05 15:23:56 +010034 drivers/delay_timer/generic_delay_timer.c \
developerea201172019-05-02 20:33:58 +080035 drivers/ti/uart/aarch64/16550_console.S \
developer65014b82015-04-13 14:47:57 +080036 lib/cpus/aarch64/aem_generic.S \
37 lib/cpus/aarch64/cortex_a53.S \
38 lib/cpus/aarch64/cortex_a57.S \
39 lib/cpus/aarch64/cortex_a72.S \
developer14f3fe32016-04-28 14:07:42 +080040 ${MTK_PLAT}/common/mtk_plat_common.c \
developer65014b82015-04-13 14:47:57 +080041 ${MTK_PLAT}/common/mtk_sip_svc.c \
developerfe14b9f2022-09-05 11:18:04 +080042 ${MTK_PLAT}/drivers/pmic_wrap/pmic_wrap_init.c \
43 ${MTK_PLAT}/drivers/rtc/rtc_common.c \
developer65014b82015-04-13 14:47:57 +080044 ${MTK_PLAT_SOC}/aarch64/plat_helpers.S \
45 ${MTK_PLAT_SOC}/aarch64/platform_common.c \
46 ${MTK_PLAT_SOC}/bl31_plat_setup.c \
developereee29802016-05-11 18:45:20 +080047 ${MTK_PLAT_SOC}/drivers/crypt/crypt.c \
developer65014b82015-04-13 14:47:57 +080048 ${MTK_PLAT_SOC}/drivers/mtcmos/mtcmos.c \
developer65014b82015-04-13 14:47:57 +080049 ${MTK_PLAT_SOC}/drivers/rtc/rtc.c \
50 ${MTK_PLAT_SOC}/drivers/spm/spm.c \
51 ${MTK_PLAT_SOC}/drivers/spm/spm_hotplug.c \
52 ${MTK_PLAT_SOC}/drivers/spm/spm_mcdi.c \
53 ${MTK_PLAT_SOC}/drivers/spm/spm_suspend.c \
54 ${MTK_PLAT_SOC}/drivers/timer/mt_cpuxgpt.c \
Julius Wernere3a000d2018-03-12 13:26:49 -070055 ${MTK_PLAT_SOC}/drivers/wdt/wdt.c \
developer65014b82015-04-13 14:47:57 +080056 ${MTK_PLAT_SOC}/plat_pm.c \
57 ${MTK_PLAT_SOC}/plat_sip_calls.c \
58 ${MTK_PLAT_SOC}/plat_topology.c \
59 ${MTK_PLAT_SOC}/power_tracer.c \
60 ${MTK_PLAT_SOC}/scu.c
61
developer65014b82015-04-13 14:47:57 +080062# Enable workarounds for selected Cortex-A53 erratas.
63ERRATA_A53_826319 := 1
64ERRATA_A53_836870 := 1
Andre Przywarabf7f2f02016-11-07 10:53:14 +000065ERRATA_A53_855873 := 1
developer65014b82015-04-13 14:47:57 +080066
67# indicate the reset vector address can be programmed
68PROGRAMMABLE_RESET_ADDRESS := 1
developer14f3fe32016-04-28 14:07:42 +080069
70$(eval $(call add_define,MTK_SIP_SET_AUTHORIZED_SECURE_REG_ENABLE))
David Cunadoc5b0c0f2017-10-31 23:19:21 +000071
72# Do not enable SVE
73ENABLE_SVE_FOR_NS := 0