developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 1 | # |
dp-arm | 230011c | 2017-03-07 11:02:47 +0000 | [diff] [blame] | 2 | # Copyright (c) 2015-2017, ARM Limited and Contributors. All rights reserved. |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 3 | # |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | # SPDX-License-Identifier: BSD-3-Clause |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | MTK_PLAT := plat/mediatek |
| 8 | MTK_PLAT_SOC := ${MTK_PLAT}/${PLAT} |
| 9 | |
| 10 | PLAT_INCLUDES := -I${MTK_PLAT}/common/ \ |
Koan-Sin Tan | 1d2b639 | 2016-04-18 15:17:57 +0800 | [diff] [blame] | 11 | -Iinclude/plat/arm/common/aarch64 \ |
developer | eee2980 | 2016-05-11 18:45:20 +0800 | [diff] [blame] | 12 | -I${MTK_PLAT_SOC}/drivers/crypt/ \ |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 13 | -I${MTK_PLAT_SOC}/drivers/mtcmos/ \ |
| 14 | -I${MTK_PLAT_SOC}/drivers/pmic/ \ |
| 15 | -I${MTK_PLAT_SOC}/drivers/rtc/ \ |
| 16 | -I${MTK_PLAT_SOC}/drivers/spm/ \ |
| 17 | -I${MTK_PLAT_SOC}/drivers/timer/ \ |
Julius Werner | e3a000d | 2018-03-12 13:26:49 -0700 | [diff] [blame] | 18 | -I${MTK_PLAT_SOC}/drivers/wdt/ \ |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 19 | -I${MTK_PLAT_SOC}/include/ |
| 20 | |
Soby Mathew | cc037c1 | 2016-04-08 16:42:58 +0100 | [diff] [blame] | 21 | PLAT_BL_COMMON_SOURCES := lib/xlat_tables/xlat_tables_common.c \ |
| 22 | lib/xlat_tables/aarch64/xlat_tables.c \ |
Koan-Sin Tan | 1d2b639 | 2016-04-18 15:17:57 +0800 | [diff] [blame] | 23 | plat/arm/common/arm_gicv2.c \ |
developer | ea20117 | 2019-05-02 20:33:58 +0800 | [diff] [blame] | 24 | plat/common/plat_gicv2.c \ |
| 25 | plat/common/aarch64/crash_console_helpers.S |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 26 | |
Julius Werner | 1f36321 | 2019-05-30 17:34:08 -0700 | [diff] [blame] | 27 | BL31_SOURCES += common/desc_image_load.c \ |
| 28 | drivers/arm/cci/cci.c \ |
Koan-Sin Tan | 1d2b639 | 2016-04-18 15:17:57 +0800 | [diff] [blame] | 29 | drivers/arm/gic/common/gic_common.c \ |
| 30 | drivers/arm/gic/v2/gicv2_main.c \ |
| 31 | drivers/arm/gic/v2/gicv2_helpers.c \ |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 32 | drivers/delay_timer/delay_timer.c \ |
Antonio Nino Diaz | 02a09af | 2016-05-05 15:23:56 +0100 | [diff] [blame] | 33 | drivers/delay_timer/generic_delay_timer.c \ |
developer | ea20117 | 2019-05-02 20:33:58 +0800 | [diff] [blame] | 34 | drivers/ti/uart/aarch64/16550_console.S \ |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 35 | lib/cpus/aarch64/aem_generic.S \ |
| 36 | lib/cpus/aarch64/cortex_a53.S \ |
| 37 | lib/cpus/aarch64/cortex_a57.S \ |
| 38 | lib/cpus/aarch64/cortex_a72.S \ |
developer | 037da99 | 2019-05-02 21:06:05 +0800 | [diff] [blame] | 39 | ${MTK_PLAT}/common/drivers/pmic_wrap/pmic_wrap_init.c \ |
| 40 | ${MTK_PLAT}/common/drivers/rtc/rtc_common.c \ |
developer | 14f3fe3 | 2016-04-28 14:07:42 +0800 | [diff] [blame] | 41 | ${MTK_PLAT}/common/mtk_plat_common.c \ |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 42 | ${MTK_PLAT}/common/mtk_sip_svc.c \ |
| 43 | ${MTK_PLAT_SOC}/aarch64/plat_helpers.S \ |
| 44 | ${MTK_PLAT_SOC}/aarch64/platform_common.c \ |
| 45 | ${MTK_PLAT_SOC}/bl31_plat_setup.c \ |
developer | eee2980 | 2016-05-11 18:45:20 +0800 | [diff] [blame] | 46 | ${MTK_PLAT_SOC}/drivers/crypt/crypt.c \ |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 47 | ${MTK_PLAT_SOC}/drivers/mtcmos/mtcmos.c \ |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 48 | ${MTK_PLAT_SOC}/drivers/rtc/rtc.c \ |
| 49 | ${MTK_PLAT_SOC}/drivers/spm/spm.c \ |
| 50 | ${MTK_PLAT_SOC}/drivers/spm/spm_hotplug.c \ |
| 51 | ${MTK_PLAT_SOC}/drivers/spm/spm_mcdi.c \ |
| 52 | ${MTK_PLAT_SOC}/drivers/spm/spm_suspend.c \ |
| 53 | ${MTK_PLAT_SOC}/drivers/timer/mt_cpuxgpt.c \ |
Julius Werner | e3a000d | 2018-03-12 13:26:49 -0700 | [diff] [blame] | 54 | ${MTK_PLAT_SOC}/drivers/wdt/wdt.c \ |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 55 | ${MTK_PLAT_SOC}/plat_pm.c \ |
| 56 | ${MTK_PLAT_SOC}/plat_sip_calls.c \ |
| 57 | ${MTK_PLAT_SOC}/plat_topology.c \ |
| 58 | ${MTK_PLAT_SOC}/power_tracer.c \ |
| 59 | ${MTK_PLAT_SOC}/scu.c |
| 60 | |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 61 | # Enable workarounds for selected Cortex-A53 erratas. |
| 62 | ERRATA_A53_826319 := 1 |
| 63 | ERRATA_A53_836870 := 1 |
Andre Przywara | bf7f2f0 | 2016-11-07 10:53:14 +0000 | [diff] [blame] | 64 | ERRATA_A53_855873 := 1 |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 65 | |
| 66 | # indicate the reset vector address can be programmed |
| 67 | PROGRAMMABLE_RESET_ADDRESS := 1 |
developer | 14f3fe3 | 2016-04-28 14:07:42 +0800 | [diff] [blame] | 68 | |
| 69 | $(eval $(call add_define,MTK_SIP_SET_AUTHORIZED_SECURE_REG_ENABLE)) |
David Cunado | c5b0c0f | 2017-10-31 23:19:21 +0000 | [diff] [blame] | 70 | |
| 71 | # Do not enable SVE |
| 72 | ENABLE_SVE_FOR_NS := 0 |
developer | ea20117 | 2019-05-02 20:33:58 +0800 | [diff] [blame] | 73 | |
| 74 | MULTI_CONSOLE_API := 1 |