developer | 6d207b4 | 2022-07-07 19:30:22 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2022, 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 | MTK_SOC := ${PLAT} |
| 10 | |
| 11 | include plat/mediatek/build_helpers/mtk_build_helpers.mk |
| 12 | include drivers/arm/gic/v3/gicv3.mk |
| 13 | include lib/xlat_tables_v2/xlat_tables.mk |
| 14 | |
| 15 | PLAT_INCLUDES := -I${MTK_PLAT}/common \ |
| 16 | -I${MTK_PLAT}/include \ |
developer | 3b31b93 | 2022-09-05 16:07:00 +0800 | [diff] [blame] | 17 | -I${MTK_PLAT}/include/${ARCH_VERSION} \ |
developer | 6d207b4 | 2022-07-07 19:30:22 +0800 | [diff] [blame] | 18 | -I${MTK_PLAT} \ |
| 19 | -I${MTK_PLAT_SOC}/include \ |
| 20 | -Idrivers/arm/gic \ |
| 21 | |
| 22 | MODULES-y += $(MTK_PLAT)/common |
developer | afdd96a | 2022-09-29 10:41:26 +0800 | [diff] [blame] | 23 | MODULES-y += $(MTK_PLAT)/common/lpm |
developer | 6d207b4 | 2022-07-07 19:30:22 +0800 | [diff] [blame] | 24 | MODULES-y += $(MTK_PLAT)/lib/mtk_init |
| 25 | MODULES-y += $(MTK_PLAT)/lib/pm |
developer | a7c9bf3 | 2022-07-29 16:38:43 +0800 | [diff] [blame] | 26 | MODULES-y += $(MTK_PLAT)/lib/system_reset |
developer | 369b039 | 2022-09-20 14:50:36 +0800 | [diff] [blame] | 27 | MODULES-y += $(MTK_PLAT)/drivers/audio |
developer | bdeb0ba | 2022-07-08 14:48:56 +0800 | [diff] [blame] | 28 | MODULES-y += $(MTK_PLAT)/drivers/cirq |
developer | 1d69df5 | 2022-09-05 17:36:36 +0800 | [diff] [blame] | 29 | MODULES-y += $(MTK_PLAT)/drivers/cpu_pm |
developer | 86a8c56 | 2022-09-05 17:44:02 +0800 | [diff] [blame] | 30 | MODULES-y += $(MTK_PLAT)/drivers/dcm |
Fengquan Chen | 67f11f0 | 2022-08-17 10:42:15 +0800 | [diff] [blame] | 31 | MODULES-y += $(MTK_PLAT)/drivers/dfd |
developer | 7fa15de | 2022-07-11 19:03:35 +0800 | [diff] [blame] | 32 | MODULES-y += $(MTK_PLAT)/drivers/dp |
developer | 880fb17 | 2022-09-05 19:08:59 +0800 | [diff] [blame] | 33 | MODULES-y += $(MTK_PLAT)/drivers/emi_mpu |
developer | 6600255 | 2022-07-08 13:58:33 +0800 | [diff] [blame] | 34 | MODULES-y += $(MTK_PLAT)/drivers/gic600 |
Jianguo Zhang | be99c73 | 2022-07-29 13:55:03 +0800 | [diff] [blame] | 35 | MODULES-y += $(MTK_PLAT)/drivers/gpio |
Chengci Xu | db1e75b | 2022-07-20 16:20:15 +0800 | [diff] [blame] | 36 | MODULES-y += $(MTK_PLAT)/drivers/iommu |
developer | 768f112 | 2022-09-16 11:30:43 +0800 | [diff] [blame] | 37 | MODULES-y += $(MTK_PLAT)/drivers/mcusys |
Hui Liu | 39ea614 | 2022-07-28 20:28:32 +0800 | [diff] [blame] | 38 | MODULES-y += $(MTK_PLAT)/drivers/pmic |
| 39 | MODULES-y += $(MTK_PLAT)/drivers/pmic_wrap |
Riven Chen | 1a4a525 | 2022-10-17 13:11:27 +0800 | [diff] [blame] | 40 | MODULES-y += $(MTK_PLAT)/drivers/ptp3 |
Song Fan | a4efd72 | 2022-07-25 19:50:52 +0800 | [diff] [blame] | 41 | MODULES-y += $(MTK_PLAT)/drivers/rtc |
developer | c193d63 | 2022-07-08 13:16:17 +0800 | [diff] [blame] | 42 | MODULES-y += $(MTK_PLAT)/drivers/timer |
developer | 3b31b93 | 2022-09-05 16:07:00 +0800 | [diff] [blame] | 43 | MODULES-y += $(MTK_PLAT)/helpers |
| 44 | MODULES-y += $(MTK_PLAT)/topology |
developer | 6d207b4 | 2022-07-07 19:30:22 +0800 | [diff] [blame] | 45 | |
| 46 | PLAT_BL_COMMON_SOURCES := common/desc_image_load.c \ |
| 47 | drivers/ti/uart/aarch64/16550_console.S \ |
| 48 | lib/bl_aux_params/bl_aux_params.c |
| 49 | |
| 50 | BL31_SOURCES += drivers/delay_timer/delay_timer.c \ |
| 51 | drivers/delay_timer/generic_delay_timer.c \ |
| 52 | lib/cpus/aarch64/cortex_a55.S \ |
| 53 | lib/cpus/aarch64/cortex_a78.S \ |
| 54 | ${GICV3_SOURCES} \ |
| 55 | ${XLAT_TABLES_LIB_SRCS} \ |
| 56 | plat/common/plat_gicv3.c \ |
| 57 | plat/common/plat_psci_common.c \ |
| 58 | plat/common/aarch64/crash_console_helpers.S \ |
| 59 | ${MTK_PLAT}/common/mtk_plat_common.c \ |
| 60 | ${MTK_PLAT}/common/params_setup.c \ |
developer | 3b31b93 | 2022-09-05 16:07:00 +0800 | [diff] [blame] | 61 | $(MTK_PLAT)/$(MTK_SOC)/plat_mmap.c |
developer | 6d207b4 | 2022-07-07 19:30:22 +0800 | [diff] [blame] | 62 | |
| 63 | include plat/mediatek/build_helpers/mtk_build_helpers_epilogue.mk |
| 64 | |
| 65 | include lib/coreboot/coreboot.mk |