blob: efa7e9e27d395bd0b147c907b50ddbb8f756a250 [file] [log] [blame]
developer1033ea12019-04-10 21:09:26 +08001#
developera21d47e2019-05-02 19:29:25 +08002# Copyright (c) 2019, MediaTek Inc. All rights reserved.
developer1033ea12019-04-10 21:09:26 +08003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7MTK_PLAT := plat/mediatek
8MTK_PLAT_SOC := ${MTK_PLAT}/${PLAT}
9
10PLAT_INCLUDES := -I${MTK_PLAT}/common/ \
developer88837432019-05-02 22:01:39 +080011 -I${MTK_PLAT_SOC}/drivers/ \
developer555ed552019-08-21 22:49:49 +080012 -I${MTK_PLAT_SOC}/drivers/mcdi/ \
developera21d47e2019-05-02 19:29:25 +080013 -I${MTK_PLAT_SOC}/drivers/spmc/ \
developerb7ba14b2019-05-02 20:24:50 +080014 -I${MTK_PLAT_SOC}/drivers/gpio/ \
developer6f37fd22019-05-02 20:02:05 +080015 -I${MTK_PLAT_SOC}/drivers/pmic/ \
developer083fa242019-08-21 20:50:20 +080016 -I${MTK_PLAT_SOC}/drivers/spm/ \
developerda573122019-08-21 21:17:49 +080017 -I${MTK_PLAT_SOC}/drivers/sspm/ \
developer6f37fd22019-05-02 20:02:05 +080018 -I${MTK_PLAT_SOC}/drivers/rtc/ \
developera767ecc2019-08-20 22:27:44 +080019 -I${MTK_PLAT_SOC}/drivers/uart/ \
developer1033ea12019-04-10 21:09:26 +080020 -I${MTK_PLAT_SOC}/include/
21
22PLAT_BL_COMMON_SOURCES := lib/xlat_tables/aarch64/xlat_tables.c \
23 lib/xlat_tables/xlat_tables_common.c \
developer1033ea12019-04-10 21:09:26 +080024 plat/common/plat_psci_common.c \
25 plat/common/aarch64/crash_console_helpers.S
26
Julius Werner1f363212019-05-30 17:34:08 -070027BL31_SOURCES += common/desc_image_load.c \
28 drivers/arm/cci/cci.c \
developer1033ea12019-04-10 21:09:26 +080029 drivers/arm/gic/common/gic_common.c \
developer3f3f1ab2019-05-02 22:26:22 +080030 drivers/arm/gic/v3/arm_gicv3_common.c \
31 drivers/arm/gic/v3/gicv3_helpers.c \
32 drivers/arm/gic/v3/gic500.c \
33 drivers/arm/gic/v3/gicv3_main.c \
developer1033ea12019-04-10 21:09:26 +080034 drivers/delay_timer/delay_timer.c \
35 drivers/delay_timer/generic_delay_timer.c \
36 drivers/gpio/gpio.c \
37 drivers/ti/uart/aarch64/16550_console.S \
developer092c53a2019-05-03 16:59:07 +080038 lib/bl_aux_params/bl_aux_params.c \
developer1033ea12019-04-10 21:09:26 +080039 lib/cpus/aarch64/aem_generic.S \
40 lib/cpus/aarch64/cortex_a53.S \
41 lib/cpus/aarch64/cortex_a73.S \
developer3f3f1ab2019-05-02 22:26:22 +080042 plat/common/plat_gicv3.c \
developer1033ea12019-04-10 21:09:26 +080043 ${MTK_PLAT}/common/mtk_plat_common.c \
developer6f37fd22019-05-02 20:02:05 +080044 ${MTK_PLAT}/common/drivers/pmic_wrap/pmic_wrap_init.c \
45 ${MTK_PLAT}/common/drivers/rtc/rtc_common.c \
developer092c53a2019-05-03 16:59:07 +080046 ${MTK_PLAT}/common/params_setup.c \
developer1033ea12019-04-10 21:09:26 +080047 ${MTK_PLAT_SOC}/aarch64/plat_helpers.S \
48 ${MTK_PLAT_SOC}/aarch64/platform_common.c \
developer88837432019-05-02 22:01:39 +080049 ${MTK_PLAT_SOC}/drivers/mcsi/mcsi.c \
developer6f37fd22019-05-02 20:02:05 +080050 ${MTK_PLAT_SOC}/drivers/pmic/pmic.c \
51 ${MTK_PLAT_SOC}/drivers/rtc/rtc.c \
developer555ed552019-08-21 22:49:49 +080052 ${MTK_PLAT_SOC}/drivers/mcdi/mtk_mcdi.c \
developera21d47e2019-05-02 19:29:25 +080053 ${MTK_PLAT_SOC}/drivers/spmc/mtspmc.c \
developer083fa242019-08-21 20:50:20 +080054 ${MTK_PLAT_SOC}/drivers/spm/spm.c \
55 ${MTK_PLAT_SOC}/drivers/spm/spm_pmic_wrap.c \
56 ${MTK_PLAT_SOC}/drivers/spm/spm_suspend.c \
developerb7ba14b2019-05-02 20:24:50 +080057 ${MTK_PLAT_SOC}/drivers/gpio/mtgpio.c \
developera767ecc2019-08-20 22:27:44 +080058 ${MTK_PLAT_SOC}/drivers/uart/uart.c \
developer1033ea12019-04-10 21:09:26 +080059 ${MTK_PLAT_SOC}/plat_pm.c \
60 ${MTK_PLAT_SOC}/plat_topology.c \
developer3f3f1ab2019-05-02 22:26:22 +080061 ${MTK_PLAT_SOC}/plat_mt_gic.c \
developera21d47e2019-05-02 19:29:25 +080062 ${MTK_PLAT_SOC}/plat_dcm.c \
developer1033ea12019-04-10 21:09:26 +080063 ${MTK_PLAT_SOC}/bl31_plat_setup.c \
64 ${MTK_PLAT_SOC}/plat_debug.c \
developerda573122019-08-21 21:17:49 +080065 ${MTK_PLAT_SOC}/scu.c \
66 ${MTK_PLAT_SOC}/drivers/sspm/sspm.c
developer1033ea12019-04-10 21:09:26 +080067
68# Enable workarounds for selected Cortex-A53 erratas.
69ERRATA_A53_826319 := 0
70ERRATA_A53_836870 := 1
71ERRATA_A53_855873 := 1
72
73# indicate the reset vector address can be programmed
74PROGRAMMABLE_RESET_ADDRESS := 1
75
76COLD_BOOT_SINGLE_CPU := 1
77
78MULTI_CONSOLE_API := 1
79
80MACH_MT8183 := 1
81$(eval $(call add_define,MACH_MT8183))
82
Hung-Te Linc05a0b52019-05-02 21:42:41 +080083include lib/coreboot/coreboot.mk
84