blob: 01851effc2c6e5d896dedae3786536bc09fcc727 [file] [log] [blame]
developer2189d3a2020-04-17 17:14:23 +08001#
2# Copyright (c) 2020, MediaTek Inc. All rights reserved.
3#
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/ \
developer404e08b2020-09-18 09:32:31 +080011 -I${MTK_PLAT_SOC}/include/ \
12 -I${MTK_PLAT_SOC}/drivers/ \
developer86ada3c2020-07-03 09:19:06 +080013 -I${MTK_PLAT_SOC}/drivers/gpio/ \
developera444a202020-06-15 16:41:03 +080014 -I${MTK_PLAT_SOC}/drivers/mcdi/ \
developer74cf3ec2020-08-12 16:31:06 +080015 -I${MTK_PLAT_SOC}/drivers/pmic/ \
developer31f56a72020-06-16 13:28:28 +080016 -I${MTK_PLAT_SOC}/drivers/spmc/ \
developer86ada3c2020-07-03 09:19:06 +080017 -I${MTK_PLAT_SOC}/drivers/timer/
developer2189d3a2020-04-17 17:14:23 +080018
developerf9b56842020-06-09 13:38:35 +080019GICV3_SUPPORT_GIC600 := 1
developer2189d3a2020-04-17 17:14:23 +080020include drivers/arm/gic/v3/gicv3.mk
21include lib/xlat_tables_v2/xlat_tables.mk
22
23PLAT_BL_COMMON_SOURCES := ${GICV3_SOURCES} \
24 ${XLAT_TABLES_LIB_SRCS} \
25 plat/common/aarch64/crash_console_helpers.S \
26 plat/common/plat_psci_common.c
27
28BL31_SOURCES += common/desc_image_load.c \
developerf13d6492020-08-05 13:53:59 +080029 drivers/delay_timer/delay_timer.c \
30 drivers/delay_timer/generic_delay_timer.c \
developer2189d3a2020-04-17 17:14:23 +080031 drivers/ti/uart/aarch64/16550_console.S \
developer404e08b2020-09-18 09:32:31 +080032 drivers/gpio/gpio.c \
developer2189d3a2020-04-17 17:14:23 +080033 lib/bl_aux_params/bl_aux_params.c \
34 lib/cpus/aarch64/cortex_a55.S \
35 lib/cpus/aarch64/cortex_a76.S \
36 plat/common/plat_gicv3.c \
developer74cf3ec2020-08-12 16:31:06 +080037 ${MTK_PLAT}/common/drivers/pmic_wrap/pmic_wrap_init_v2.c \
developer2189d3a2020-04-17 17:14:23 +080038 ${MTK_PLAT}/common/mtk_plat_common.c \
39 ${MTK_PLAT}/common/params_setup.c \
40 ${MTK_PLAT_SOC}/aarch64/platform_common.c \
41 ${MTK_PLAT_SOC}/aarch64/plat_helpers.S \
42 ${MTK_PLAT_SOC}/bl31_plat_setup.c \
developer74cf3ec2020-08-12 16:31:06 +080043 ${MTK_PLAT_SOC}/drivers/pmic/pmic.c \
developer2189d3a2020-04-17 17:14:23 +080044 ${MTK_PLAT_SOC}/plat_pm.c \
developerf9b56842020-06-09 13:38:35 +080045 ${MTK_PLAT_SOC}/plat_topology.c \
developer404e08b2020-09-18 09:32:31 +080046 ${MTK_PLAT_SOC}/plat_mt_gic.c \
developer28d70382019-12-19 15:58:20 +080047 ${MTK_PLAT_SOC}/plat_mt_cirq.c \
developer86ada3c2020-07-03 09:19:06 +080048 ${MTK_PLAT_SOC}/drivers/gpio/mtgpio.c \
developera444a202020-06-15 16:41:03 +080049 ${MTK_PLAT_SOC}/drivers/mcdi/mt_cpu_pm.c \
50 ${MTK_PLAT_SOC}/drivers/mcdi/mt_cpu_pm_cpc.c \
51 ${MTK_PLAT_SOC}/drivers/mcdi/mt_mcdi.c \
developer31f56a72020-06-16 13:28:28 +080052 ${MTK_PLAT_SOC}/drivers/spmc/mtspmc.c \
developer86ada3c2020-07-03 09:19:06 +080053 ${MTK_PLAT_SOC}/drivers/timer/mt_timer.c
developer2189d3a2020-04-17 17:14:23 +080054
developer2189d3a2020-04-17 17:14:23 +080055# Configs for A76 and A55
56HW_ASSISTED_COHERENCY := 1
57USE_COHERENT_MEM := 0
58CTX_INCLUDE_AARCH32_REGS := 0
59
60# indicate the reset vector address can be programmed
61PROGRAMMABLE_RESET_ADDRESS := 1
62
63COLD_BOOT_SINGLE_CPU := 1
64
65MACH_MT8192 := 1
66$(eval $(call add_define,MACH_MT8192))
67
68include lib/coreboot/coreboot.mk
69