Home | History | Annotate | Download | only in mt8173
      1 #
      2 # Copyright (c) 2015-2017, 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}/common/drivers/uart/		\
     12 				-Iinclude/plat/arm/common			\
     13 				-Iinclude/plat/arm/common/aarch64		\
     14 				-I${MTK_PLAT_SOC}/drivers/crypt/		\
     15 				-I${MTK_PLAT_SOC}/drivers/mtcmos/		\
     16 				-I${MTK_PLAT_SOC}/drivers/pmic/			\
     17 				-I${MTK_PLAT_SOC}/drivers/rtc/			\
     18 				-I${MTK_PLAT_SOC}/drivers/spm/			\
     19 				-I${MTK_PLAT_SOC}/drivers/timer/		\
     20 				-I${MTK_PLAT_SOC}/include/
     21 
     22 PLAT_BL_COMMON_SOURCES	:=	lib/xlat_tables/xlat_tables_common.c		\
     23 				lib/xlat_tables/aarch64/xlat_tables.c		\
     24 				plat/arm/common/arm_gicv2.c			\
     25 				plat/common/plat_gicv2.c
     26 
     27 BL31_SOURCES		+=	drivers/arm/cci/cci.c				\
     28 				drivers/arm/gic/common/gic_common.c		\
     29 				drivers/arm/gic/v2/gicv2_main.c			\
     30 				drivers/arm/gic/v2/gicv2_helpers.c		\
     31 				drivers/console/aarch64/console.S		\
     32 				drivers/delay_timer/delay_timer.c		\
     33 				drivers/delay_timer/generic_delay_timer.c	\
     34 				lib/cpus/aarch64/aem_generic.S			\
     35 				lib/cpus/aarch64/cortex_a53.S			\
     36 				lib/cpus/aarch64/cortex_a57.S			\
     37 				lib/cpus/aarch64/cortex_a72.S			\
     38 				${MTK_PLAT}/common/drivers/uart/8250_console.S	\
     39 				${MTK_PLAT}/common/mtk_plat_common.c		\
     40 				${MTK_PLAT}/common/mtk_sip_svc.c		\
     41 				${MTK_PLAT_SOC}/aarch64/plat_helpers.S		\
     42 				${MTK_PLAT_SOC}/aarch64/platform_common.c	\
     43 				${MTK_PLAT_SOC}/bl31_plat_setup.c		\
     44 				${MTK_PLAT_SOC}/drivers/crypt/crypt.c		\
     45 				${MTK_PLAT_SOC}/drivers/mtcmos/mtcmos.c		\
     46 				${MTK_PLAT_SOC}/drivers/pmic/pmic_wrap_init.c	\
     47 				${MTK_PLAT_SOC}/drivers/rtc/rtc.c		\
     48 				${MTK_PLAT_SOC}/drivers/spm/spm.c		\
     49 				${MTK_PLAT_SOC}/drivers/spm/spm_hotplug.c	\
     50 				${MTK_PLAT_SOC}/drivers/spm/spm_mcdi.c		\
     51 				${MTK_PLAT_SOC}/drivers/spm/spm_suspend.c	\
     52 				${MTK_PLAT_SOC}/drivers/timer/mt_cpuxgpt.c	\
     53 				${MTK_PLAT_SOC}/plat_pm.c			\
     54 				${MTK_PLAT_SOC}/plat_sip_calls.c		\
     55 				${MTK_PLAT_SOC}/plat_topology.c			\
     56 				${MTK_PLAT_SOC}/power_tracer.c			\
     57 				${MTK_PLAT_SOC}/scu.c
     58 
     59 # Flag used by the MTK_platform port to determine the version of ARM GIC
     60 # architecture to use for interrupt management in EL3.
     61 ARM_GIC_ARCH		:=	2
     62 $(eval $(call add_define,ARM_GIC_ARCH))
     63 
     64 # Enable workarounds for selected Cortex-A53 erratas.
     65 ERRATA_A53_826319	:=	1
     66 ERRATA_A53_836870	:=	1
     67 ERRATA_A53_855873	:=	1
     68 
     69 # indicate the reset vector address can be programmed
     70 PROGRAMMABLE_RESET_ADDRESS	:=	1
     71 
     72 $(eval $(call add_define,MTK_SIP_SET_AUTHORIZED_SECURE_REG_ENABLE))
     73