developer | 2189d3a | 2020-04-17 17:14:23 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2020, 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}/include/ |
| 12 | |
| 13 | include drivers/arm/gic/v3/gicv3.mk |
| 14 | include lib/xlat_tables_v2/xlat_tables.mk |
| 15 | |
| 16 | PLAT_BL_COMMON_SOURCES := ${GICV3_SOURCES} \ |
| 17 | ${XLAT_TABLES_LIB_SRCS} \ |
| 18 | plat/common/aarch64/crash_console_helpers.S \ |
| 19 | plat/common/plat_psci_common.c |
| 20 | |
| 21 | BL31_SOURCES += common/desc_image_load.c \ |
| 22 | drivers/ti/uart/aarch64/16550_console.S \ |
| 23 | lib/bl_aux_params/bl_aux_params.c \ |
| 24 | lib/cpus/aarch64/cortex_a55.S \ |
| 25 | lib/cpus/aarch64/cortex_a76.S \ |
| 26 | plat/common/plat_gicv3.c \ |
| 27 | ${MTK_PLAT}/common/mtk_plat_common.c \ |
| 28 | ${MTK_PLAT}/common/params_setup.c \ |
| 29 | ${MTK_PLAT_SOC}/aarch64/platform_common.c \ |
| 30 | ${MTK_PLAT_SOC}/aarch64/plat_helpers.S \ |
| 31 | ${MTK_PLAT_SOC}/bl31_plat_setup.c \ |
| 32 | ${MTK_PLAT_SOC}/plat_pm.c \ |
| 33 | ${MTK_PLAT_SOC}/plat_topology.c |
| 34 | |
| 35 | |
| 36 | # Configs for A76 and A55 |
| 37 | HW_ASSISTED_COHERENCY := 1 |
| 38 | USE_COHERENT_MEM := 0 |
| 39 | CTX_INCLUDE_AARCH32_REGS := 0 |
| 40 | |
| 41 | # indicate the reset vector address can be programmed |
| 42 | PROGRAMMABLE_RESET_ADDRESS := 1 |
| 43 | |
| 44 | COLD_BOOT_SINGLE_CPU := 1 |
| 45 | |
| 46 | MACH_MT8192 := 1 |
| 47 | $(eval $(call add_define,MACH_MT8192)) |
| 48 | |
| 49 | include lib/coreboot/coreboot.mk |
| 50 | |