developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # Redistribution and use in source and binary forms, with or without |
| 5 | # modification, are permitted provided that the following conditions are met: |
| 6 | # |
| 7 | # Redistributions of source code must retain the above copyright notice, this |
| 8 | # list of conditions and the following disclaimer. |
| 9 | # |
| 10 | # Redistributions in binary form must reproduce the above copyright notice, |
| 11 | # this list of conditions and the following disclaimer in the documentation |
| 12 | # and/or other materials provided with the distribution. |
| 13 | # |
| 14 | # Neither the name of ARM nor the names of its contributors may be used |
| 15 | # to endorse or promote products derived from this software without specific |
| 16 | # prior written permission. |
| 17 | # |
| 18 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 19 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 20 | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 21 | # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
| 22 | # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 23 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 24 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 25 | # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 26 | # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 27 | # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 28 | # POSSIBILITY OF SUCH DAMAGE. |
| 29 | # |
| 30 | |
| 31 | MTK_PLAT := plat/mediatek |
| 32 | MTK_PLAT_SOC := ${MTK_PLAT}/${PLAT} |
| 33 | |
| 34 | PLAT_INCLUDES := -I${MTK_PLAT}/common/ \ |
developer | 550bf5e | 2016-07-11 16:05:23 +0800 | [diff] [blame] | 35 | -I${MTK_PLAT}/common/drivers/uart/ \ |
Koan-Sin Tan | 1d2b639 | 2016-04-18 15:17:57 +0800 | [diff] [blame] | 36 | -Iinclude/plat/arm/common \ |
| 37 | -Iinclude/plat/arm/common/aarch64 \ |
developer | eee2980 | 2016-05-11 18:45:20 +0800 | [diff] [blame] | 38 | -I${MTK_PLAT_SOC}/drivers/crypt/ \ |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 39 | -I${MTK_PLAT_SOC}/drivers/mtcmos/ \ |
| 40 | -I${MTK_PLAT_SOC}/drivers/pmic/ \ |
| 41 | -I${MTK_PLAT_SOC}/drivers/rtc/ \ |
| 42 | -I${MTK_PLAT_SOC}/drivers/spm/ \ |
| 43 | -I${MTK_PLAT_SOC}/drivers/timer/ \ |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 44 | -I${MTK_PLAT_SOC}/include/ |
| 45 | |
Soby Mathew | cc037c1 | 2016-04-08 16:42:58 +0100 | [diff] [blame] | 46 | PLAT_BL_COMMON_SOURCES := lib/xlat_tables/xlat_tables_common.c \ |
| 47 | lib/xlat_tables/aarch64/xlat_tables.c \ |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 48 | plat/common/aarch64/plat_common.c \ |
Koan-Sin Tan | 1d2b639 | 2016-04-18 15:17:57 +0800 | [diff] [blame] | 49 | plat/arm/common/arm_gicv2.c \ |
| 50 | plat/common/plat_gicv2.c |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 51 | |
| 52 | BL31_SOURCES += drivers/arm/cci/cci.c \ |
Koan-Sin Tan | 1d2b639 | 2016-04-18 15:17:57 +0800 | [diff] [blame] | 53 | drivers/arm/gic/common/gic_common.c \ |
| 54 | drivers/arm/gic/v2/gicv2_main.c \ |
| 55 | drivers/arm/gic/v2/gicv2_helpers.c \ |
Soby Mathew | 1723113 | 2016-08-08 12:33:06 +0100 | [diff] [blame] | 56 | drivers/console/aarch64/console.S \ |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 57 | drivers/delay_timer/delay_timer.c \ |
Antonio Nino Diaz | 02a09af | 2016-05-05 15:23:56 +0100 | [diff] [blame] | 58 | drivers/delay_timer/generic_delay_timer.c \ |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 59 | lib/cpus/aarch64/aem_generic.S \ |
| 60 | lib/cpus/aarch64/cortex_a53.S \ |
| 61 | lib/cpus/aarch64/cortex_a57.S \ |
| 62 | lib/cpus/aarch64/cortex_a72.S \ |
| 63 | plat/common/aarch64/platform_mp_stack.S \ |
developer | 550bf5e | 2016-07-11 16:05:23 +0800 | [diff] [blame] | 64 | ${MTK_PLAT}/common/drivers/uart/8250_console.S \ |
developer | 14f3fe3 | 2016-04-28 14:07:42 +0800 | [diff] [blame] | 65 | ${MTK_PLAT}/common/mtk_plat_common.c \ |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 66 | ${MTK_PLAT}/common/mtk_sip_svc.c \ |
| 67 | ${MTK_PLAT_SOC}/aarch64/plat_helpers.S \ |
| 68 | ${MTK_PLAT_SOC}/aarch64/platform_common.c \ |
| 69 | ${MTK_PLAT_SOC}/bl31_plat_setup.c \ |
developer | eee2980 | 2016-05-11 18:45:20 +0800 | [diff] [blame] | 70 | ${MTK_PLAT_SOC}/drivers/crypt/crypt.c \ |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 71 | ${MTK_PLAT_SOC}/drivers/mtcmos/mtcmos.c \ |
| 72 | ${MTK_PLAT_SOC}/drivers/pmic/pmic_wrap_init.c \ |
| 73 | ${MTK_PLAT_SOC}/drivers/rtc/rtc.c \ |
| 74 | ${MTK_PLAT_SOC}/drivers/spm/spm.c \ |
| 75 | ${MTK_PLAT_SOC}/drivers/spm/spm_hotplug.c \ |
| 76 | ${MTK_PLAT_SOC}/drivers/spm/spm_mcdi.c \ |
| 77 | ${MTK_PLAT_SOC}/drivers/spm/spm_suspend.c \ |
| 78 | ${MTK_PLAT_SOC}/drivers/timer/mt_cpuxgpt.c \ |
developer | 65014b8 | 2015-04-13 14:47:57 +0800 | [diff] [blame] | 79 | ${MTK_PLAT_SOC}/plat_pm.c \ |
| 80 | ${MTK_PLAT_SOC}/plat_sip_calls.c \ |
| 81 | ${MTK_PLAT_SOC}/plat_topology.c \ |
| 82 | ${MTK_PLAT_SOC}/power_tracer.c \ |
| 83 | ${MTK_PLAT_SOC}/scu.c |
| 84 | |
| 85 | # Flag used by the MTK_platform port to determine the version of ARM GIC |
| 86 | # architecture to use for interrupt management in EL3. |
| 87 | ARM_GIC_ARCH := 2 |
| 88 | $(eval $(call add_define,ARM_GIC_ARCH)) |
| 89 | |
| 90 | # Enable workarounds for selected Cortex-A53 erratas. |
| 91 | ERRATA_A53_826319 := 1 |
| 92 | ERRATA_A53_836870 := 1 |
| 93 | |
| 94 | # indicate the reset vector address can be programmed |
| 95 | PROGRAMMABLE_RESET_ADDRESS := 1 |
developer | 14f3fe3 | 2016-04-28 14:07:42 +0800 | [diff] [blame] | 96 | |
| 97 | $(eval $(call add_define,MTK_SIP_SET_AUTHORIZED_SECURE_REG_ENABLE)) |