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