developer | 2189d3a | 2020-04-17 17:14:23 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2020, MediaTek Inc. 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/ \ |
developer | 404e08b | 2020-09-18 09:32:31 +0800 | [diff] [blame] | 11 | -I${MTK_PLAT_SOC}/include/ \ |
| 12 | -I${MTK_PLAT_SOC}/drivers/ \ |
developer | 86ada3c | 2020-07-03 09:19:06 +0800 | [diff] [blame] | 13 | -I${MTK_PLAT_SOC}/drivers/gpio/ \ |
developer | a444a20 | 2020-06-15 16:41:03 +0800 | [diff] [blame] | 14 | -I${MTK_PLAT_SOC}/drivers/mcdi/ \ |
developer | 31f56a7 | 2020-06-16 13:28:28 +0800 | [diff] [blame] | 15 | -I${MTK_PLAT_SOC}/drivers/spmc/ \ |
developer | 86ada3c | 2020-07-03 09:19:06 +0800 | [diff] [blame] | 16 | -I${MTK_PLAT_SOC}/drivers/timer/ |
developer | 2189d3a | 2020-04-17 17:14:23 +0800 | [diff] [blame] | 17 | |
developer | f9b5684 | 2020-06-09 13:38:35 +0800 | [diff] [blame] | 18 | GICV3_SUPPORT_GIC600 := 1 |
developer | 2189d3a | 2020-04-17 17:14:23 +0800 | [diff] [blame] | 19 | include drivers/arm/gic/v3/gicv3.mk |
| 20 | include lib/xlat_tables_v2/xlat_tables.mk |
| 21 | |
| 22 | PLAT_BL_COMMON_SOURCES := ${GICV3_SOURCES} \ |
| 23 | ${XLAT_TABLES_LIB_SRCS} \ |
| 24 | plat/common/aarch64/crash_console_helpers.S \ |
| 25 | plat/common/plat_psci_common.c |
| 26 | |
| 27 | BL31_SOURCES += common/desc_image_load.c \ |
| 28 | drivers/ti/uart/aarch64/16550_console.S \ |
developer | 404e08b | 2020-09-18 09:32:31 +0800 | [diff] [blame] | 29 | drivers/gpio/gpio.c \ |
developer | 2189d3a | 2020-04-17 17:14:23 +0800 | [diff] [blame] | 30 | lib/bl_aux_params/bl_aux_params.c \ |
| 31 | lib/cpus/aarch64/cortex_a55.S \ |
| 32 | lib/cpus/aarch64/cortex_a76.S \ |
| 33 | plat/common/plat_gicv3.c \ |
| 34 | ${MTK_PLAT}/common/mtk_plat_common.c \ |
| 35 | ${MTK_PLAT}/common/params_setup.c \ |
| 36 | ${MTK_PLAT_SOC}/aarch64/platform_common.c \ |
| 37 | ${MTK_PLAT_SOC}/aarch64/plat_helpers.S \ |
| 38 | ${MTK_PLAT_SOC}/bl31_plat_setup.c \ |
| 39 | ${MTK_PLAT_SOC}/plat_pm.c \ |
developer | f9b5684 | 2020-06-09 13:38:35 +0800 | [diff] [blame] | 40 | ${MTK_PLAT_SOC}/plat_topology.c \ |
developer | 404e08b | 2020-09-18 09:32:31 +0800 | [diff] [blame] | 41 | ${MTK_PLAT_SOC}/plat_mt_gic.c \ |
developer | 28d7038 | 2019-12-19 15:58:20 +0800 | [diff] [blame] | 42 | ${MTK_PLAT_SOC}/plat_mt_cirq.c \ |
developer | 86ada3c | 2020-07-03 09:19:06 +0800 | [diff] [blame] | 43 | ${MTK_PLAT_SOC}/drivers/gpio/mtgpio.c \ |
developer | a444a20 | 2020-06-15 16:41:03 +0800 | [diff] [blame] | 44 | ${MTK_PLAT_SOC}/drivers/mcdi/mt_cpu_pm.c \ |
| 45 | ${MTK_PLAT_SOC}/drivers/mcdi/mt_cpu_pm_cpc.c \ |
| 46 | ${MTK_PLAT_SOC}/drivers/mcdi/mt_mcdi.c \ |
developer | 31f56a7 | 2020-06-16 13:28:28 +0800 | [diff] [blame] | 47 | ${MTK_PLAT_SOC}/drivers/spmc/mtspmc.c \ |
developer | 86ada3c | 2020-07-03 09:19:06 +0800 | [diff] [blame] | 48 | ${MTK_PLAT_SOC}/drivers/timer/mt_timer.c |
developer | 2189d3a | 2020-04-17 17:14:23 +0800 | [diff] [blame] | 49 | |
developer | 2189d3a | 2020-04-17 17:14:23 +0800 | [diff] [blame] | 50 | # Configs for A76 and A55 |
| 51 | HW_ASSISTED_COHERENCY := 1 |
| 52 | USE_COHERENT_MEM := 0 |
| 53 | CTX_INCLUDE_AARCH32_REGS := 0 |
| 54 | |
| 55 | # indicate the reset vector address can be programmed |
| 56 | PROGRAMMABLE_RESET_ADDRESS := 1 |
| 57 | |
| 58 | COLD_BOOT_SINGLE_CPU := 1 |
| 59 | |
| 60 | MACH_MT8192 := 1 |
| 61 | $(eval $(call add_define,MACH_MT8192)) |
| 62 | |
| 63 | include lib/coreboot/coreboot.mk |
| 64 | |