developer | 1033ea1 | 2019-04-10 21:09:26 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2019, ARM Limited and Contributors. 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 | PLAT_BL_COMMON_SOURCES := lib/xlat_tables/aarch64/xlat_tables.c \ |
| 14 | lib/xlat_tables/xlat_tables_common.c \ |
| 15 | plat/common/plat_gicv2.c \ |
| 16 | plat/common/plat_psci_common.c \ |
| 17 | plat/common/aarch64/crash_console_helpers.S |
| 18 | |
| 19 | BL31_SOURCES += drivers/arm/cci/cci.c \ |
| 20 | drivers/arm/gic/common/gic_common.c \ |
| 21 | drivers/arm/gic/v2/gicv2_main.c \ |
| 22 | drivers/arm/gic/v2/gicv2_helpers.c \ |
| 23 | drivers/delay_timer/delay_timer.c \ |
| 24 | drivers/delay_timer/generic_delay_timer.c \ |
| 25 | drivers/gpio/gpio.c \ |
| 26 | drivers/ti/uart/aarch64/16550_console.S \ |
| 27 | lib/cpus/aarch64/aem_generic.S \ |
| 28 | lib/cpus/aarch64/cortex_a53.S \ |
| 29 | lib/cpus/aarch64/cortex_a73.S \ |
| 30 | ${MTK_PLAT}/common/mtk_plat_common.c \ |
| 31 | ${MTK_PLAT_SOC}/aarch64/plat_helpers.S \ |
| 32 | ${MTK_PLAT_SOC}/aarch64/platform_common.c \ |
| 33 | ${MTK_PLAT_SOC}/plat_pm.c \ |
| 34 | ${MTK_PLAT_SOC}/plat_topology.c \ |
| 35 | ${MTK_PLAT_SOC}/bl31_plat_setup.c \ |
| 36 | ${MTK_PLAT_SOC}/plat_debug.c \ |
| 37 | ${MTK_PLAT_SOC}/scu.c |
| 38 | |
| 39 | # Enable workarounds for selected Cortex-A53 erratas. |
| 40 | ERRATA_A53_826319 := 0 |
| 41 | ERRATA_A53_836870 := 1 |
| 42 | ERRATA_A53_855873 := 1 |
| 43 | |
| 44 | # indicate the reset vector address can be programmed |
| 45 | PROGRAMMABLE_RESET_ADDRESS := 1 |
| 46 | |
| 47 | COLD_BOOT_SINGLE_CPU := 1 |
| 48 | |
| 49 | MULTI_CONSOLE_API := 1 |
| 50 | |
| 51 | MACH_MT8183 := 1 |
| 52 | $(eval $(call add_define,MACH_MT8183)) |
| 53 | |