developer | 550bf5e | 2016-07-11 16:05:23 +0800 | [diff] [blame] | 1 | # |
dp-arm | 230011c | 2017-03-07 11:02:47 +0000 | [diff] [blame] | 2 | # Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved. |
developer | 550bf5e | 2016-07-11 16:05:23 +0800 | [diff] [blame] | 3 | # |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | # SPDX-License-Identifier: BSD-3-Clause |
developer | 550bf5e | 2016-07-11 16:05:23 +0800 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | MTK_PLAT := plat/mediatek |
| 8 | MTK_PLAT_SOC := ${MTK_PLAT}/${PLAT} |
| 9 | |
| 10 | # Add OEM customized codes |
| 11 | OEMS := true |
| 12 | MTK_SIP_KERNEL_BOOT_ENABLE := 1 |
| 13 | |
| 14 | |
| 15 | ifneq (${OEMS},none) |
| 16 | OEMS_INCLUDES := -I${MTK_PLAT}/common/custom/ |
| 17 | OEMS_SOURCES := ${MTK_PLAT}/common/custom/oem_svc.c |
| 18 | endif |
| 19 | |
| 20 | PLAT_INCLUDES := -I${MTK_PLAT}/common/ \ |
| 21 | -I${MTK_PLAT}/common/drivers/uart \ |
| 22 | -I${MTK_PLAT_SOC}/ \ |
| 23 | -I${MTK_PLAT_SOC}/drivers/timer/ \ |
| 24 | -I${MTK_PLAT_SOC}/include/ \ |
| 25 | -Iinclude/plat/arm/common/ \ |
developer | 550bf5e | 2016-07-11 16:05:23 +0800 | [diff] [blame] | 26 | ${OEMS_INCLUDES} |
| 27 | |
Antonio Nino Diaz | 42eef85 | 2018-09-24 17:15:54 +0100 | [diff] [blame] | 28 | PLAT_BL_COMMON_SOURCES := lib/xlat_tables/aarch64/xlat_tables.c \ |
| 29 | lib/xlat_tables/xlat_tables_common.c \ |
developer | 550bf5e | 2016-07-11 16:05:23 +0800 | [diff] [blame] | 30 | plat/common/plat_gic.c |
| 31 | |
| 32 | BL31_SOURCES += drivers/arm/cci/cci.c \ |
| 33 | drivers/delay_timer/generic_delay_timer.c \ |
| 34 | drivers/arm/gic/common/gic_common.c \ |
| 35 | drivers/arm/gic/v2/gicv2_main.c \ |
| 36 | drivers/arm/gic/v2/gicv2_helpers.c \ |
| 37 | plat/common/plat_gicv2.c \ |
Antonio Nino Diaz | 42eef85 | 2018-09-24 17:15:54 +0100 | [diff] [blame] | 38 | drivers/console/aarch64/console.S \ |
developer | 550bf5e | 2016-07-11 16:05:23 +0800 | [diff] [blame] | 39 | drivers/delay_timer/delay_timer.c \ |
| 40 | lib/cpus/aarch64/cortex_a53.S \ |
developer | 550bf5e | 2016-07-11 16:05:23 +0800 | [diff] [blame] | 41 | ${MTK_PLAT_SOC}/bl31_plat_setup.c \ |
| 42 | ${MTK_PLAT_SOC}/plat_mt_gic.c \ |
| 43 | ${MTK_PLAT}/common/mtk_sip_svc.c \ |
| 44 | ${MTK_PLAT}/common/mtk_plat_common.c \ |
| 45 | ${MTK_PLAT}/common/drivers/uart/8250_console.S \ |
| 46 | ${MTK_PLAT_SOC}/aarch64/plat_helpers.S \ |
| 47 | ${MTK_PLAT_SOC}/drivers/timer/mt_cpuxgpt.c \ |
developer | 550bf5e | 2016-07-11 16:05:23 +0800 | [diff] [blame] | 48 | ${MTK_PLAT_SOC}/plat_delay_timer.c \ |
| 49 | ${MTK_PLAT_SOC}/plat_pm.c \ |
| 50 | ${MTK_PLAT_SOC}/plat_topology.c \ |
| 51 | ${MTK_PLAT_SOC}/power_tracer.c \ |
| 52 | ${MTK_PLAT_SOC}/scu.c \ |
| 53 | ${OEMS_SOURCES} |
| 54 | |
developer | 550bf5e | 2016-07-11 16:05:23 +0800 | [diff] [blame] | 55 | # Enable workarounds for selected Cortex-A53 erratas. |
| 56 | ERRATA_A53_826319 := 1 |
| 57 | ERRATA_A53_836870 := 1 |
| 58 | |
Dimitris Papastamos | 8e5bd5e | 2018-01-24 16:41:14 +0000 | [diff] [blame] | 59 | WORKAROUND_CVE_2017_5715 := 0 |
| 60 | |
developer | 550bf5e | 2016-07-11 16:05:23 +0800 | [diff] [blame] | 61 | # indicate the reset vector address can be programmed |
| 62 | PROGRAMMABLE_RESET_ADDRESS := 1 |
| 63 | |
| 64 | $(eval $(call add_define,MTK_SIP_KERNEL_BOOT_ENABLE)) |
| 65 | |
David Cunado | c5b0c0f | 2017-10-31 23:19:21 +0000 | [diff] [blame] | 66 | # Do not enable SVE |
| 67 | ENABLE_SVE_FOR_NS := 0 |