developer | 1033ea1 | 2019-04-10 21:09:26 +0800 | [diff] [blame] | 1 | # |
developer | a21d47e | 2019-05-02 19:29:25 +0800 | [diff] [blame] | 2 | # Copyright (c) 2019, MediaTek Inc. All rights reserved. |
developer | 1033ea1 | 2019-04-10 21:09:26 +0800 | [diff] [blame] | 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 | 8883743 | 2019-05-02 22:01:39 +0800 | [diff] [blame] | 11 | -I${MTK_PLAT_SOC}/drivers/ \ |
developer | 644ec1c | 2019-08-23 15:50:58 +0800 | [diff] [blame] | 12 | -I${MTK_PLAT_SOC}/drivers/emi_mpu/ \ |
developer | 0d2cfca | 2019-08-23 10:23:34 +0800 | [diff] [blame] | 13 | -I${MTK_PLAT_SOC}/drivers/devapc/ \ |
developer | 555ed55 | 2019-08-21 22:49:49 +0800 | [diff] [blame] | 14 | -I${MTK_PLAT_SOC}/drivers/mcdi/ \ |
developer | a21d47e | 2019-05-02 19:29:25 +0800 | [diff] [blame] | 15 | -I${MTK_PLAT_SOC}/drivers/spmc/ \ |
developer | b7ba14b | 2019-05-02 20:24:50 +0800 | [diff] [blame] | 16 | -I${MTK_PLAT_SOC}/drivers/gpio/ \ |
developer | 6f37fd2 | 2019-05-02 20:02:05 +0800 | [diff] [blame] | 17 | -I${MTK_PLAT_SOC}/drivers/pmic/ \ |
developer | 083fa24 | 2019-08-21 20:50:20 +0800 | [diff] [blame] | 18 | -I${MTK_PLAT_SOC}/drivers/spm/ \ |
developer | da57312 | 2019-08-21 21:17:49 +0800 | [diff] [blame] | 19 | -I${MTK_PLAT_SOC}/drivers/sspm/ \ |
developer | 6f37fd2 | 2019-05-02 20:02:05 +0800 | [diff] [blame] | 20 | -I${MTK_PLAT_SOC}/drivers/rtc/ \ |
developer | a767ecc | 2019-08-20 22:27:44 +0800 | [diff] [blame] | 21 | -I${MTK_PLAT_SOC}/drivers/uart/ \ |
developer | 1033ea1 | 2019-04-10 21:09:26 +0800 | [diff] [blame] | 22 | -I${MTK_PLAT_SOC}/include/ |
| 23 | |
| 24 | PLAT_BL_COMMON_SOURCES := lib/xlat_tables/aarch64/xlat_tables.c \ |
| 25 | lib/xlat_tables/xlat_tables_common.c \ |
developer | 1033ea1 | 2019-04-10 21:09:26 +0800 | [diff] [blame] | 26 | plat/common/plat_psci_common.c \ |
| 27 | plat/common/aarch64/crash_console_helpers.S |
| 28 | |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 29 | # Include GICv3 driver files |
| 30 | include drivers/arm/gic/v3/gicv3.mk |
| 31 | |
Julius Werner | 1f36321 | 2019-05-30 17:34:08 -0700 | [diff] [blame] | 32 | BL31_SOURCES += common/desc_image_load.c \ |
| 33 | drivers/arm/cci/cci.c \ |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 34 | ${GICV3_SOURCES} \ |
developer | 1033ea1 | 2019-04-10 21:09:26 +0800 | [diff] [blame] | 35 | drivers/delay_timer/delay_timer.c \ |
| 36 | drivers/delay_timer/generic_delay_timer.c \ |
| 37 | drivers/gpio/gpio.c \ |
| 38 | drivers/ti/uart/aarch64/16550_console.S \ |
developer | 092c53a | 2019-05-03 16:59:07 +0800 | [diff] [blame] | 39 | lib/bl_aux_params/bl_aux_params.c \ |
developer | 1033ea1 | 2019-04-10 21:09:26 +0800 | [diff] [blame] | 40 | lib/cpus/aarch64/aem_generic.S \ |
| 41 | lib/cpus/aarch64/cortex_a53.S \ |
| 42 | lib/cpus/aarch64/cortex_a73.S \ |
developer | 3f3f1ab | 2019-05-02 22:26:22 +0800 | [diff] [blame] | 43 | plat/common/plat_gicv3.c \ |
developer | 1033ea1 | 2019-04-10 21:09:26 +0800 | [diff] [blame] | 44 | ${MTK_PLAT}/common/mtk_plat_common.c \ |
developer | 6f37fd2 | 2019-05-02 20:02:05 +0800 | [diff] [blame] | 45 | ${MTK_PLAT}/common/drivers/pmic_wrap/pmic_wrap_init.c \ |
| 46 | ${MTK_PLAT}/common/drivers/rtc/rtc_common.c \ |
developer | 092c53a | 2019-05-03 16:59:07 +0800 | [diff] [blame] | 47 | ${MTK_PLAT}/common/params_setup.c \ |
developer | 1033ea1 | 2019-04-10 21:09:26 +0800 | [diff] [blame] | 48 | ${MTK_PLAT_SOC}/aarch64/plat_helpers.S \ |
| 49 | ${MTK_PLAT_SOC}/aarch64/platform_common.c \ |
developer | 0d2cfca | 2019-08-23 10:23:34 +0800 | [diff] [blame] | 50 | ${MTK_PLAT_SOC}/drivers/devapc/devapc.c \ |
developer | 8883743 | 2019-05-02 22:01:39 +0800 | [diff] [blame] | 51 | ${MTK_PLAT_SOC}/drivers/mcsi/mcsi.c \ |
developer | 6f37fd2 | 2019-05-02 20:02:05 +0800 | [diff] [blame] | 52 | ${MTK_PLAT_SOC}/drivers/pmic/pmic.c \ |
| 53 | ${MTK_PLAT_SOC}/drivers/rtc/rtc.c \ |
developer | 555ed55 | 2019-08-21 22:49:49 +0800 | [diff] [blame] | 54 | ${MTK_PLAT_SOC}/drivers/mcdi/mtk_mcdi.c \ |
developer | a21d47e | 2019-05-02 19:29:25 +0800 | [diff] [blame] | 55 | ${MTK_PLAT_SOC}/drivers/spmc/mtspmc.c \ |
developer | 083fa24 | 2019-08-21 20:50:20 +0800 | [diff] [blame] | 56 | ${MTK_PLAT_SOC}/drivers/spm/spm.c \ |
| 57 | ${MTK_PLAT_SOC}/drivers/spm/spm_pmic_wrap.c \ |
| 58 | ${MTK_PLAT_SOC}/drivers/spm/spm_suspend.c \ |
developer | b7ba14b | 2019-05-02 20:24:50 +0800 | [diff] [blame] | 59 | ${MTK_PLAT_SOC}/drivers/gpio/mtgpio.c \ |
developer | a767ecc | 2019-08-20 22:27:44 +0800 | [diff] [blame] | 60 | ${MTK_PLAT_SOC}/drivers/uart/uart.c \ |
developer | 644ec1c | 2019-08-23 15:50:58 +0800 | [diff] [blame] | 61 | ${MTK_PLAT_SOC}/drivers/emi_mpu/emi_mpu.c \ |
developer | 1033ea1 | 2019-04-10 21:09:26 +0800 | [diff] [blame] | 62 | ${MTK_PLAT_SOC}/plat_pm.c \ |
| 63 | ${MTK_PLAT_SOC}/plat_topology.c \ |
developer | 3f3f1ab | 2019-05-02 22:26:22 +0800 | [diff] [blame] | 64 | ${MTK_PLAT_SOC}/plat_mt_gic.c \ |
developer | a21d47e | 2019-05-02 19:29:25 +0800 | [diff] [blame] | 65 | ${MTK_PLAT_SOC}/plat_dcm.c \ |
developer | 1033ea1 | 2019-04-10 21:09:26 +0800 | [diff] [blame] | 66 | ${MTK_PLAT_SOC}/bl31_plat_setup.c \ |
| 67 | ${MTK_PLAT_SOC}/plat_debug.c \ |
developer | da57312 | 2019-08-21 21:17:49 +0800 | [diff] [blame] | 68 | ${MTK_PLAT_SOC}/scu.c \ |
| 69 | ${MTK_PLAT_SOC}/drivers/sspm/sspm.c |
developer | 1033ea1 | 2019-04-10 21:09:26 +0800 | [diff] [blame] | 70 | |
| 71 | # Enable workarounds for selected Cortex-A53 erratas. |
| 72 | ERRATA_A53_826319 := 0 |
| 73 | ERRATA_A53_836870 := 1 |
| 74 | ERRATA_A53_855873 := 1 |
| 75 | |
| 76 | # indicate the reset vector address can be programmed |
| 77 | PROGRAMMABLE_RESET_ADDRESS := 1 |
| 78 | |
| 79 | COLD_BOOT_SINGLE_CPU := 1 |
| 80 | |
| 81 | MULTI_CONSOLE_API := 1 |
| 82 | |
| 83 | MACH_MT8183 := 1 |
| 84 | $(eval $(call add_define,MACH_MT8183)) |
| 85 | |
Hung-Te Lin | c05a0b5 | 2019-05-02 21:42:41 +0800 | [diff] [blame] | 86 | include lib/coreboot/coreboot.mk |
| 87 | |