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