blob: 21cc6a3c0cb08dbafddde437bf0dd806a3fb22a9 [file] [log] [blame]
Hadi Asyrafi616da772019-06-27 11:34:03 +08001#
Arvind Ram Prakash11b9b492022-11-22 14:41:00 -06002# Copyright (c) 2019-2023, ARM Limited and Contributors. All rights reserved.
Sieu Mun Tang6848bd62024-07-20 00:43:43 +08003# Copyright (c) 2019-2023, Intel Corporation. All rights reserved.
4# Copyright (c) 2024, Altera Corporation. All rights reserved.
Hadi Asyrafi616da772019-06-27 11:34:03 +08005#
6# SPDX-License-Identifier: BSD-3-Clause
7#
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +08008
Hadi Asyrafi616da772019-06-27 11:34:03 +08009PLAT_INCLUDES := \
10 -Iplat/intel/soc/agilex/include/ \
Hadi Asyrafi309ac012019-08-01 14:48:39 +080011 -Iplat/intel/soc/common/drivers/ \
12 -Iplat/intel/soc/common/include/
Hadi Asyrafi616da772019-06-27 11:34:03 +080013
Abdul Halim, Muhammad Hadi Asyrafi0ae8d9a2020-08-19 14:50:01 +080014# Include GICv2 driver files
15include drivers/arm/gic/v2/gicv2.mk
16AGX_GICv2_SOURCES := \
17 ${GICV2_SOURCES} \
18 plat/common/plat_gicv2.c
19
20
Hadi Asyrafi616da772019-06-27 11:34:03 +080021PLAT_BL_COMMON_SOURCES := \
Abdul Halim, Muhammad Hadi Asyrafi0ae8d9a2020-08-19 14:50:01 +080022 ${AGX_GICv2_SOURCES} \
Hadi Asyrafi616da772019-06-27 11:34:03 +080023 drivers/delay_timer/delay_timer.c \
24 drivers/delay_timer/generic_delay_timer.c \
25 drivers/ti/uart/aarch64/16550_console.S \
26 lib/xlat_tables/aarch64/xlat_tables.c \
27 lib/xlat_tables/xlat_tables_common.c \
Hadi Asyrafi309ac012019-08-01 14:48:39 +080028 plat/intel/soc/common/aarch64/platform_common.c \
Chee Hong Ang64740962020-05-11 00:55:01 +080029 plat/intel/soc/common/aarch64/plat_helpers.S \
Abdul Halim, Muhammad Hadi Asyrafi2f94ca42020-08-05 22:40:46 +080030 plat/intel/soc/common/drivers/ccu/ncore_ccu.c \
Sieu Mun Tang6848bd62024-07-20 00:43:43 +080031 plat/intel/soc/common/lib/sha/sha.c \
Chee Hong Ang64740962020-05-11 00:55:01 +080032 plat/intel/soc/common/socfpga_delay_timer.c
Hadi Asyrafi616da772019-06-27 11:34:03 +080033
34BL2_SOURCES += \
35 common/desc_image_load.c \
Hadi Asyrafi616da772019-06-27 11:34:03 +080036 drivers/mmc/mmc.c \
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080037 drivers/intel/soc/stratix10/io/s10_memmap_qspi.c \
Hadi Asyrafi616da772019-06-27 11:34:03 +080038 drivers/io/io_storage.c \
39 drivers/io/io_block.c \
40 drivers/io/io_fip.c \
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080041 drivers/partition/partition.c \
42 drivers/partition/gpt.c \
43 drivers/synopsys/emmc/dw_mmc.c \
Hadi Asyrafi616da772019-06-27 11:34:03 +080044 lib/cpus/aarch64/cortex_a53.S \
45 plat/intel/soc/agilex/bl2_plat_setup.c \
Hadi Asyrafi616da772019-06-27 11:34:03 +080046 plat/intel/soc/agilex/soc/agilex_clock_manager.c \
Hadi Asyrafi616da772019-06-27 11:34:03 +080047 plat/intel/soc/agilex/soc/agilex_memory_controller.c \
Tien Hock Lohfcbc33d2020-05-11 01:11:39 -070048 plat/intel/soc/agilex/soc/agilex_mmc.c \
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080049 plat/intel/soc/agilex/soc/agilex_pinmux.c \
BenjaminLimJLa4a43272022-04-06 10:19:16 +080050 plat/intel/soc/common/bl2_plat_mem_params_desc.c \
Hadi Asyrafi6a240c72019-08-01 15:21:20 +080051 plat/intel/soc/common/socfpga_image_load.c \
Mahesh Raoc2715992023-08-22 17:26:23 +080052 plat/intel/soc/common/socfpga_ros.c \
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080053 plat/intel/soc/common/socfpga_storage.c \
Sieu Mun Tang6848bd62024-07-20 00:43:43 +080054 plat/intel/soc/common/socfpga_vab.c \
Tien Hock, Loh8d9e8912019-10-02 13:49:25 +080055 plat/intel/soc/common/soc/socfpga_emac.c \
Abdul Halim, Muhammad Hadi Asyrafi1205ef02020-08-06 10:21:54 +080056 plat/intel/soc/common/soc/socfpga_firewall.c \
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080057 plat/intel/soc/common/soc/socfpga_handoff.c \
Hadi Asyrafi6f8a2b22019-10-23 18:34:14 +080058 plat/intel/soc/common/soc/socfpga_mailbox.c \
Hadi Asyrafi67cb0ea2019-12-23 13:25:33 +080059 plat/intel/soc/common/soc/socfpga_reset_manager.c \
Jit Loon Lim477aef42023-08-14 13:12:01 +080060 plat/intel/soc/common/drivers/ddr/ddr.c \
Hadi Asyrafi616da772019-06-27 11:34:03 +080061 plat/intel/soc/common/drivers/qspi/cadence_qspi.c \
Abdul Halim, Muhammad Hadi Asyrafi2f94ca42020-08-05 22:40:46 +080062 plat/intel/soc/common/drivers/wdt/watchdog.c
Hadi Asyrafi616da772019-06-27 11:34:03 +080063
Rohit Nerdc2daae2022-05-11 03:15:40 -070064include lib/zlib/zlib.mk
65PLAT_INCLUDES += -Ilib/zlib
66BL2_SOURCES += $(ZLIB_SOURCES)
67
Hadi Asyrafi616da772019-06-27 11:34:03 +080068BL31_SOURCES += \
69 drivers/arm/cci/cci.c \
Hadi Asyrafi616da772019-06-27 11:34:03 +080070 lib/cpus/aarch64/aem_generic.S \
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080071 lib/cpus/aarch64/cortex_a53.S \
Hadi Asyrafi616da772019-06-27 11:34:03 +080072 plat/common/plat_psci_common.c \
Hadi Asyrafi616da772019-06-27 11:34:03 +080073 plat/intel/soc/agilex/bl31_plat_setup.c \
BenjaminLimJLa4a43272022-04-06 10:19:16 +080074 plat/intel/soc/agilex/soc/agilex_clock_manager.c \
Hadi Asyrafi4d9f3952019-10-23 17:35:32 +080075 plat/intel/soc/common/socfpga_psci.c \
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080076 plat/intel/soc/common/socfpga_sip_svc.c \
Sieu Mun Tang044ed482022-05-11 10:45:19 +080077 plat/intel/soc/common/socfpga_sip_svc_v2.c \
Hadi Asyrafi6a240c72019-08-01 15:21:20 +080078 plat/intel/soc/common/socfpga_topology.c \
Sieu Mun Tangdbcc2cf2022-03-07 12:13:04 +080079 plat/intel/soc/common/sip/socfpga_sip_ecc.c \
Sieu Mun Tang9f22cbf2022-03-02 11:04:09 +080080 plat/intel/soc/common/sip/socfpga_sip_fcs.c \
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080081 plat/intel/soc/common/soc/socfpga_mailbox.c \
Hadi Asyrafi36a9f302019-12-24 10:42:52 +080082 plat/intel/soc/common/soc/socfpga_reset_manager.c
Hadi Asyrafi616da772019-06-27 11:34:03 +080083
Sieu Mun Tang6848bd62024-07-20 00:43:43 +080084# Don't have the Linux kernel as a BL33 image by default
85ARM_LINUX_KERNEL_AS_BL33 := 0
86$(eval $(call assert_boolean,ARM_LINUX_KERNEL_AS_BL33))
87$(eval $(call add_define,ARM_LINUX_KERNEL_AS_BL33))
Jit Loon Limc5a3e3a2023-10-16 00:19:34 +080088$(eval $(call add_define,ARM_PRELOADED_DTB_BASE))
89
Sieu Mun Tang6848bd62024-07-20 00:43:43 +080090# Configs for VAB Authentication
91SOCFPGA_SECURE_VAB_AUTH := 0
92$(eval $(call assert_boolean,SOCFPGA_SECURE_VAB_AUTH))
93$(eval $(call add_define,SOCFPGA_SECURE_VAB_AUTH))
94
Hadi Asyrafi616da772019-06-27 11:34:03 +080095PROGRAMMABLE_RESET_ADDRESS := 0
Arvind Ram Prakash11b9b492022-11-22 14:41:00 -060096RESET_TO_BL2 := 1
Hadi Asyrafi461f8f42019-08-20 15:33:27 +080097BL2_INV_DCACHE := 0
Hadi Asyrafi616da772019-06-27 11:34:03 +080098USE_COHERENT_MEM := 1
Sieu Mun Tang6848bd62024-07-20 00:43:43 +080099
100HANDLE_EA_EL3_FIRST_NS := 1