1# 2# Copyright (c) 2020, 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/ \ 11 -I${MTK_PLAT_SOC}/include/ \ 12 -I${MTK_PLAT_SOC}/drivers/ \ 13 -I${MTK_PLAT_SOC}/drivers/gpio/ 14 15GICV3_SUPPORT_GIC600 := 1 16include 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 24BL31_SOURCES += common/desc_image_load.c \ 25 drivers/ti/uart/aarch64/16550_console.S \ 26 drivers/gpio/gpio.c \ 27 lib/bl_aux_params/bl_aux_params.c \ 28 lib/cpus/aarch64/cortex_a55.S \ 29 lib/cpus/aarch64/cortex_a76.S \ 30 plat/common/plat_gicv3.c \ 31 ${MTK_PLAT}/common/mtk_plat_common.c \ 32 ${MTK_PLAT}/common/params_setup.c \ 33 ${MTK_PLAT_SOC}/aarch64/platform_common.c \ 34 ${MTK_PLAT_SOC}/aarch64/plat_helpers.S \ 35 ${MTK_PLAT_SOC}/bl31_plat_setup.c \ 36 ${MTK_PLAT_SOC}/plat_pm.c \ 37 ${MTK_PLAT_SOC}/plat_topology.c \ 38 ${MTK_PLAT_SOC}/plat_mt_gic.c \ 39 ${MTK_PLAT_SOC}/drivers/gpio/mtgpio.c 40 41 42# Configs for A76 and A55 43HW_ASSISTED_COHERENCY := 1 44USE_COHERENT_MEM := 0 45CTX_INCLUDE_AARCH32_REGS := 0 46 47# indicate the reset vector address can be programmed 48PROGRAMMABLE_RESET_ADDRESS := 1 49 50COLD_BOOT_SINGLE_CPU := 1 51 52MACH_MT8192 := 1 53$(eval $(call add_define,MACH_MT8192)) 54 55include lib/coreboot/coreboot.mk 56 57