mediatek: mt8183: support CPU hotplug
[project/bcm63xx/atf.git] / plat / mediatek / mt8183 / platform.mk
1 #
2 # Copyright (c) 2019, MediaTek Inc. All rights reserved.
3 #
4 # SPDX-License-Identifier: BSD-3-Clause
5 #
6
7 MTK_PLAT := plat/mediatek
8 MTK_PLAT_SOC := ${MTK_PLAT}/${PLAT}
9
10 PLAT_INCLUDES := -I${MTK_PLAT}/common/ \
11 -I${MTK_PLAT_SOC}/drivers/ \
12 -I${MTK_PLAT_SOC}/drivers/spmc/ \
13 -I${MTK_PLAT_SOC}/include/
14
15 PLAT_BL_COMMON_SOURCES := lib/xlat_tables/aarch64/xlat_tables.c \
16 lib/xlat_tables/xlat_tables_common.c \
17 plat/common/plat_psci_common.c \
18 plat/common/aarch64/crash_console_helpers.S
19
20 BL31_SOURCES += common/desc_image_load.c \
21 drivers/arm/cci/cci.c \
22 drivers/arm/gic/common/gic_common.c \
23 drivers/arm/gic/v3/arm_gicv3_common.c \
24 drivers/arm/gic/v3/gicv3_helpers.c \
25 drivers/arm/gic/v3/gic500.c \
26 drivers/arm/gic/v3/gicv3_main.c \
27 drivers/delay_timer/delay_timer.c \
28 drivers/delay_timer/generic_delay_timer.c \
29 drivers/gpio/gpio.c \
30 drivers/ti/uart/aarch64/16550_console.S \
31 lib/cpus/aarch64/aem_generic.S \
32 lib/cpus/aarch64/cortex_a53.S \
33 lib/cpus/aarch64/cortex_a73.S \
34 plat/common/plat_gicv3.c \
35 ${MTK_PLAT}/common/mtk_plat_common.c \
36 ${MTK_PLAT_SOC}/aarch64/plat_helpers.S \
37 ${MTK_PLAT_SOC}/aarch64/platform_common.c \
38 ${MTK_PLAT_SOC}/drivers/mcsi/mcsi.c \
39 ${MTK_PLAT_SOC}/drivers/spmc/mtspmc.c \
40 ${MTK_PLAT_SOC}/plat_pm.c \
41 ${MTK_PLAT_SOC}/plat_topology.c \
42 ${MTK_PLAT_SOC}/plat_mt_gic.c \
43 ${MTK_PLAT_SOC}/plat_dcm.c \
44 ${MTK_PLAT_SOC}/bl31_plat_setup.c \
45 ${MTK_PLAT_SOC}/plat_debug.c \
46 ${MTK_PLAT_SOC}/scu.c
47
48 # Enable workarounds for selected Cortex-A53 erratas.
49 ERRATA_A53_826319 := 0
50 ERRATA_A53_836870 := 1
51 ERRATA_A53_855873 := 1
52
53 # indicate the reset vector address can be programmed
54 PROGRAMMABLE_RESET_ADDRESS := 1
55
56 COLD_BOOT_SINGLE_CPU := 1
57
58 MULTI_CONSOLE_API := 1
59
60 MACH_MT8183 := 1
61 $(eval $(call add_define,MACH_MT8183))
62