blob: 9567c453a8905153333790476683f93ba4afe2f4 [file] [log] [blame]
Loh Tien Hock59400a42019-02-04 16:17:24 +08001#
Arvind Ram Prakash11b9b492022-11-22 14:41:00 -06002# Copyright (c) 2019-2023, ARM Limited and Contributors. All rights reserved.
Abdul Halim, Muhammad Hadi Asyrafif3a5d022020-06-29 12:15:27 +08003# Copyright (c) 2019-2022, Intel Corporation. All rights reserved.
Loh Tien Hock59400a42019-02-04 16:17:24 +08004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8PLAT_INCLUDES := \
Loh Tien Hock59400a42019-02-04 16:17:24 +08009 -Iplat/intel/soc/stratix10/include/ \
Hadi Asyrafi309ac012019-08-01 14:48:39 +080010 -Iplat/intel/soc/common/drivers/ \
11 -Iplat/intel/soc/common/include/
Loh Tien Hock59400a42019-02-04 16:17:24 +080012
Abdul Halim, Muhammad Hadi Asyrafi0ae8d9a2020-08-19 14:50:01 +080013# Include GICv2 driver files
14include drivers/arm/gic/v2/gicv2.mk
15AGX_GICv2_SOURCES := \
16 ${GICV2_SOURCES} \
17 plat/common/plat_gicv2.c
18
19
Loh Tien Hock59400a42019-02-04 16:17:24 +080020PLAT_BL_COMMON_SOURCES := \
Abdul Halim, Muhammad Hadi Asyrafi0ae8d9a2020-08-19 14:50:01 +080021 ${AGX_GICv2_SOURCES} \
Loh Tien Hock59400a42019-02-04 16:17:24 +080022 drivers/delay_timer/delay_timer.c \
23 drivers/delay_timer/generic_delay_timer.c \
24 drivers/ti/uart/aarch64/16550_console.S \
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080025 lib/xlat_tables/aarch64/xlat_tables.c \
26 lib/xlat_tables/xlat_tables_common.c \
Hadi Asyrafi309ac012019-08-01 14:48:39 +080027 plat/intel/soc/common/aarch64/platform_common.c \
Chee Hong Ang64740962020-05-11 00:55:01 +080028 plat/intel/soc/common/aarch64/plat_helpers.S \
Abdul Halim, Muhammad Hadi Asyrafi2f94ca42020-08-05 22:40:46 +080029 plat/intel/soc/common/socfpga_delay_timer.c \
30 plat/intel/soc/common/soc/socfpga_firewall.c
Loh Tien Hock59400a42019-02-04 16:17:24 +080031
32BL2_SOURCES += \
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080033 common/desc_image_load.c \
Loh Tien Hock59400a42019-02-04 16:17:24 +080034 drivers/mmc/mmc.c \
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080035 drivers/intel/soc/stratix10/io/s10_memmap_qspi.c \
Loh Tien Hock59400a42019-02-04 16:17:24 +080036 drivers/io/io_storage.c \
37 drivers/io/io_block.c \
38 drivers/io/io_fip.c \
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080039 drivers/partition/partition.c \
40 drivers/partition/gpt.c \
41 drivers/synopsys/emmc/dw_mmc.c \
42 lib/cpus/aarch64/cortex_a53.S \
Loh Tien Hock59400a42019-02-04 16:17:24 +080043 plat/intel/soc/stratix10/bl2_plat_setup.c \
Loh Tien Hock59400a42019-02-04 16:17:24 +080044 plat/intel/soc/stratix10/soc/s10_clock_manager.c \
Loh Tien Hock59400a42019-02-04 16:17:24 +080045 plat/intel/soc/stratix10/soc/s10_memory_controller.c \
Sieu Mun Tange026eea2022-05-05 23:42:55 +080046 plat/intel/soc/stratix10/soc/s10_mmc.c \
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080047 plat/intel/soc/stratix10/soc/s10_pinmux.c \
BenjaminLimJLa4a43272022-04-06 10:19:16 +080048 plat/intel/soc/common/bl2_plat_mem_params_desc.c \
Hadi Asyrafi6a240c72019-08-01 15:21:20 +080049 plat/intel/soc/common/socfpga_image_load.c \
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080050 plat/intel/soc/common/socfpga_storage.c \
Tien Hock, Loh8d9e8912019-10-02 13:49:25 +080051 plat/intel/soc/common/soc/socfpga_emac.c \
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080052 plat/intel/soc/common/soc/socfpga_handoff.c \
Hadi Asyrafi6f8a2b22019-10-23 18:34:14 +080053 plat/intel/soc/common/soc/socfpga_mailbox.c \
Hadi Asyrafi67cb0ea2019-12-23 13:25:33 +080054 plat/intel/soc/common/soc/socfpga_reset_manager.c \
Hadi Asyrafic461add2019-06-12 11:24:12 +080055 plat/intel/soc/common/drivers/qspi/cadence_qspi.c \
Jit Loon Lim477aef42023-08-14 13:12:01 +080056 plat/intel/soc/common/drivers/ddr/ddr.c \
Hadi Asyrafic461add2019-06-12 11:24:12 +080057 plat/intel/soc/common/drivers/wdt/watchdog.c
Loh Tien Hock59400a42019-02-04 16:17:24 +080058
Rohit Nerdce970c2022-05-11 03:18:31 -070059include lib/zlib/zlib.mk
60PLAT_INCLUDES += -Ilib/zlib
61BL2_SOURCES += $(ZLIB_SOURCES)
62
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080063BL31_SOURCES += \
64 drivers/arm/cci/cci.c \
65 lib/cpus/aarch64/aem_generic.S \
Tien Hock, Lohab34f742019-02-26 09:25:14 +080066 lib/cpus/aarch64/cortex_a53.S \
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080067 plat/common/plat_psci_common.c \
BenjaminLimJLa4a43272022-04-06 10:19:16 +080068 plat/intel/soc/stratix10/soc/s10_clock_manager.c \
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080069 plat/intel/soc/stratix10/bl31_plat_setup.c \
70 plat/intel/soc/common/socfpga_psci.c \
71 plat/intel/soc/common/socfpga_sip_svc.c \
Sieu Mun Tang044ed482022-05-11 10:45:19 +080072 plat/intel/soc/common/socfpga_sip_svc_v2.c \
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080073 plat/intel/soc/common/socfpga_topology.c \
Sieu Mun Tangdbcc2cf2022-03-07 12:13:04 +080074 plat/intel/soc/common/sip/socfpga_sip_ecc.c \
Sieu Mun Tang9f22cbf2022-03-02 11:04:09 +080075 plat/intel/soc/common/sip/socfpga_sip_fcs.c \
Hadi Asyrafi5ae876f2019-10-23 17:58:06 +080076 plat/intel/soc/common/soc/socfpga_mailbox.c \
Hadi Asyrafi36a9f302019-12-24 10:42:52 +080077 plat/intel/soc/common/soc/socfpga_reset_manager.c
Loh Tien Hock59400a42019-02-04 16:17:24 +080078
79PROGRAMMABLE_RESET_ADDRESS := 0
Arvind Ram Prakash11b9b492022-11-22 14:41:00 -060080RESET_TO_BL2 := 1
Tien Hock, Lohab34f742019-02-26 09:25:14 +080081USE_COHERENT_MEM := 1