blob: 83545b76c3f7d7fb604fbbfc96c67e5e8f9c3e6d [file] [log] [blame]
developer8670d252021-03-19 22:13:11 +08001#
2# Copyright (c) 2021, MediaTek Inc. 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/ \
christine.zhua22c10b2021-03-24 21:44:52 +080011 -I${MTK_PLAT}/common/drivers/gic600/ \
developer4c1354b2021-04-22 14:56:58 +080012 -I${MTK_PLAT}/common/drivers/timer/ \
developer8670d252021-03-19 22:13:11 +080013 -I${MTK_PLAT_SOC}/include/
14
christine.zhua22c10b2021-03-24 21:44:52 +080015GICV3_SUPPORT_GIC600 := 1
developer8670d252021-03-19 22:13:11 +080016include drivers/arm/gic/v3/gicv3.mk
17include lib/xlat_tables_v2/xlat_tables.mk
18
19PLAT_BL_COMMON_SOURCES := ${GICV3_SOURCES} \
20 ${XLAT_TABLES_LIB_SRCS} \
21 plat/common/aarch64/crash_console_helpers.S \
22 plat/common/plat_psci_common.c
23
24
25BL31_SOURCES += common/desc_image_load.c \
26 drivers/ti/uart/aarch64/16550_console.S \
27 lib/bl_aux_params/bl_aux_params.c \
28 lib/cpus/aarch64/cortex_a55.S \
29 lib/cpus/aarch64/cortex_a78.S \
30 plat/common/plat_gicv3.c \
christine.zhua22c10b2021-03-24 21:44:52 +080031 ${MTK_PLAT}/common/drivers/gic600/mt_gic_v3.c \
developer4c1354b2021-04-22 14:56:58 +080032 ${MTK_PLAT}/common/drivers/timer/mt_timer.c \
developer8273a602021-03-25 11:26:46 +080033 ${MTK_PLAT}/common/mtk_cirq.c \
developer8670d252021-03-19 22:13:11 +080034 ${MTK_PLAT}/common/mtk_plat_common.c \
35 ${MTK_PLAT}/common/params_setup.c \
36 ${MTK_PLAT_SOC}/aarch64/platform_common.c \
37 ${MTK_PLAT_SOC}/aarch64/plat_helpers.S \
38 ${MTK_PLAT_SOC}/bl31_plat_setup.c \
39 ${MTK_PLAT_SOC}/plat_pm.c \
40 ${MTK_PLAT_SOC}/plat_topology.c
41
42# Configs for A78 and A55
43HW_ASSISTED_COHERENCY := 1
44USE_COHERENT_MEM := 0
45CTX_INCLUDE_AARCH32_REGS := 0
46ERRATA_A55_1530923 := 1
47
48# indicate the reset vector address can be programmed
49PROGRAMMABLE_RESET_ADDRESS := 1
50
51COLD_BOOT_SINGLE_CPU := 1
52
53MACH_MT8195 := 1
54$(eval $(call add_define,MACH_MT8195))
55
56include lib/coreboot/coreboot.mk