2021-09-28 04:24:09 +01:00
|
|
|
#
|
|
|
|
# Copyright (c) 2021, MediaTek Inc. All rights reserved.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
#
|
|
|
|
|
|
|
|
MTK_PLAT := plat/mediatek
|
|
|
|
MTK_PLAT_SOC := ${MTK_PLAT}/${PLAT}
|
|
|
|
|
|
|
|
PLAT_INCLUDES := -I${MTK_PLAT}/common/ \
|
2021-10-11 14:29:58 +01:00
|
|
|
-I${MTK_PLAT}/common/drivers/gic600/ \
|
2021-10-06 11:55:53 +01:00
|
|
|
-I${MTK_PLAT}/common/drivers/timer/ \
|
2021-10-03 03:11:04 +01:00
|
|
|
-I${MTK_PLAT_SOC}/drivers/emi_mpu/ \
|
2021-10-06 11:12:30 +01:00
|
|
|
-I${MTK_PLAT_SOC}/drivers/pmic/ \
|
2021-09-28 04:24:09 +01:00
|
|
|
-I${MTK_PLAT_SOC}/include/
|
|
|
|
|
2021-10-11 14:29:58 +01:00
|
|
|
GICV3_SUPPORT_GIC600 := 1
|
2021-09-28 04:24:09 +01:00
|
|
|
include drivers/arm/gic/v3/gicv3.mk
|
|
|
|
include lib/xlat_tables_v2/xlat_tables.mk
|
|
|
|
|
|
|
|
PLAT_BL_COMMON_SOURCES := ${GICV3_SOURCES} \
|
|
|
|
${XLAT_TABLES_LIB_SRCS} \
|
|
|
|
plat/common/aarch64/crash_console_helpers.S \
|
|
|
|
plat/common/plat_psci_common.c
|
|
|
|
|
|
|
|
|
|
|
|
BL31_SOURCES += common/desc_image_load.c \
|
2021-10-06 12:00:13 +01:00
|
|
|
drivers/delay_timer/delay_timer.c \
|
|
|
|
drivers/delay_timer/generic_delay_timer.c \
|
2021-09-28 04:24:09 +01:00
|
|
|
drivers/ti/uart/aarch64/16550_console.S \
|
|
|
|
lib/bl_aux_params/bl_aux_params.c \
|
|
|
|
lib/cpus/aarch64/cortex_a55.S \
|
|
|
|
lib/cpus/aarch64/cortex_a76.S \
|
|
|
|
plat/common/plat_gicv3.c \
|
2021-10-11 14:29:58 +01:00
|
|
|
${MTK_PLAT}/common/drivers/gic600/mt_gic_v3.c \
|
2021-10-06 11:12:30 +01:00
|
|
|
${MTK_PLAT}/common/drivers/pmic_wrap/pmic_wrap_init.c \
|
2021-09-28 04:24:09 +01:00
|
|
|
${MTK_PLAT}/common/mtk_plat_common.c \
|
2021-10-06 12:25:50 +01:00
|
|
|
${MTK_PLAT}/common/mtk_sip_svc.c \
|
2021-09-28 04:24:09 +01:00
|
|
|
${MTK_PLAT}/common/params_setup.c \
|
2021-10-06 11:55:53 +01:00
|
|
|
${MTK_PLAT}/common/drivers/timer/mt_timer.c \
|
2021-09-28 04:24:09 +01:00
|
|
|
${MTK_PLAT_SOC}/aarch64/platform_common.c \
|
|
|
|
${MTK_PLAT_SOC}/aarch64/plat_helpers.S \
|
|
|
|
${MTK_PLAT_SOC}/bl31_plat_setup.c \
|
2021-10-03 03:11:04 +01:00
|
|
|
${MTK_PLAT_SOC}/drivers/emi_mpu/emi_mpu.c \
|
2021-10-06 11:12:30 +01:00
|
|
|
${MTK_PLAT_SOC}/drivers/pmic/pmic.c \
|
2021-09-28 04:24:09 +01:00
|
|
|
${MTK_PLAT_SOC}/plat_pm.c \
|
2021-10-06 12:25:50 +01:00
|
|
|
${MTK_PLAT_SOC}/plat_sip_calls.c \
|
2021-09-28 04:24:09 +01:00
|
|
|
${MTK_PLAT_SOC}/plat_topology.c
|
|
|
|
|
|
|
|
# Configs for A76 and A55
|
|
|
|
HW_ASSISTED_COHERENCY := 1
|
|
|
|
USE_COHERENT_MEM := 0
|
|
|
|
CTX_INCLUDE_AARCH32_REGS := 0
|
|
|
|
ERRATA_A55_1530923 := 1
|
|
|
|
ERRATA_A55_1221012 := 1
|
|
|
|
|
|
|
|
# indicate the reset vector address can be programmed
|
|
|
|
PROGRAMMABLE_RESET_ADDRESS := 1
|
|
|
|
|
|
|
|
COLD_BOOT_SINGLE_CPU := 1
|
|
|
|
|
|
|
|
MACH_MT8186 := 1
|
|
|
|
$(eval $(call add_define,MACH_MT8186))
|
|
|
|
|
|
|
|
include lib/coreboot/coreboot.mk
|