blob: f0a598a38c4c088c4713fe976358ab42b97586c6 [file] [log] [blame]
developer1033ea12019-04-10 21:09:26 +08001#
2# Copyright (c) 2019, ARM Limited and Contributors. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7MTK_PLAT := plat/mediatek
8MTK_PLAT_SOC := ${MTK_PLAT}/${PLAT}
9
10PLAT_INCLUDES := -I${MTK_PLAT}/common/ \
developer88837432019-05-02 22:01:39 +080011 -I${MTK_PLAT_SOC}/drivers/ \
developer1033ea12019-04-10 21:09:26 +080012 -I${MTK_PLAT_SOC}/include/
13
14PLAT_BL_COMMON_SOURCES := lib/xlat_tables/aarch64/xlat_tables.c \
15 lib/xlat_tables/xlat_tables_common.c \
developer1033ea12019-04-10 21:09:26 +080016 plat/common/plat_psci_common.c \
17 plat/common/aarch64/crash_console_helpers.S
18
Julius Werner1f363212019-05-30 17:34:08 -070019BL31_SOURCES += common/desc_image_load.c \
20 drivers/arm/cci/cci.c \
developer1033ea12019-04-10 21:09:26 +080021 drivers/arm/gic/common/gic_common.c \
developer3f3f1ab2019-05-02 22:26:22 +080022 drivers/arm/gic/v3/arm_gicv3_common.c \
23 drivers/arm/gic/v3/gicv3_helpers.c \
24 drivers/arm/gic/v3/gic500.c \
25 drivers/arm/gic/v3/gicv3_main.c \
developer1033ea12019-04-10 21:09:26 +080026 drivers/delay_timer/delay_timer.c \
27 drivers/delay_timer/generic_delay_timer.c \
28 drivers/gpio/gpio.c \
29 drivers/ti/uart/aarch64/16550_console.S \
30 lib/cpus/aarch64/aem_generic.S \
31 lib/cpus/aarch64/cortex_a53.S \
32 lib/cpus/aarch64/cortex_a73.S \
developer3f3f1ab2019-05-02 22:26:22 +080033 plat/common/plat_gicv3.c \
developer1033ea12019-04-10 21:09:26 +080034 ${MTK_PLAT}/common/mtk_plat_common.c \
35 ${MTK_PLAT_SOC}/aarch64/plat_helpers.S \
36 ${MTK_PLAT_SOC}/aarch64/platform_common.c \
developer88837432019-05-02 22:01:39 +080037 ${MTK_PLAT_SOC}/drivers/mcsi/mcsi.c \
developer1033ea12019-04-10 21:09:26 +080038 ${MTK_PLAT_SOC}/plat_pm.c \
39 ${MTK_PLAT_SOC}/plat_topology.c \
developer3f3f1ab2019-05-02 22:26:22 +080040 ${MTK_PLAT_SOC}/plat_mt_gic.c \
developer1033ea12019-04-10 21:09:26 +080041 ${MTK_PLAT_SOC}/bl31_plat_setup.c \
42 ${MTK_PLAT_SOC}/plat_debug.c \
43 ${MTK_PLAT_SOC}/scu.c
44
45# Enable workarounds for selected Cortex-A53 erratas.
46ERRATA_A53_826319 := 0
47ERRATA_A53_836870 := 1
48ERRATA_A53_855873 := 1
49
50# indicate the reset vector address can be programmed
51PROGRAMMABLE_RESET_ADDRESS := 1
52
53COLD_BOOT_SINGLE_CPU := 1
54
55MULTI_CONSOLE_API := 1
56
57MACH_MT8183 := 1
58$(eval $(call add_define,MACH_MT8183))
59