mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00

This patch is used to enable platform enablement for Agilex5 SoC FPGA. New feature: 1. Added ATF->Zephyr boot option 2. Added xlat_v2 for MMU 3. Added ATF->Linux boot option 4. Added SMP support 5. Added HPS bridges support 6. Added EMULATOR support 7. Added DDR support 8. Added GICv3 Redistirbution init 9. Added SDMMC/NAND/Combo Phy support 10. Updated GIC as secure access 11. Added CCU driver support 12. Updated product name -> Agilex5 13. Updated register address based on y22ww52.2 RTL 14. Updated system counter freq to 400MHz Signed-off-by: Jit Loon Lim <jit.loon.lim@intel.com> Change-Id: Ice82f3e4535527cfd01500d4d528402985f72009
107 lines
3.8 KiB
Makefile
107 lines
3.8 KiB
Makefile
#
|
|
# Copyright (c) 2019-2020, ARM Limited and Contributors. All rights reserved.
|
|
# Copyright (c) 2019-2023, Intel Corporation. All rights reserved.
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
include lib/xlat_tables_v2/xlat_tables.mk
|
|
PLAT_INCLUDES := \
|
|
-Iplat/intel/soc/agilex5/include/ \
|
|
-Iplat/intel/soc/common/drivers/ \
|
|
-Iplat/intel/soc/common/include/
|
|
|
|
# GIC-600 configuration
|
|
GICV3_SUPPORT_GIC600 := 1
|
|
# Include GICv3 driver files
|
|
include drivers/arm/gic/v3/gicv3.mk
|
|
AGX5_GICv3_SOURCES := \
|
|
${GICV3_SOURCES} \
|
|
plat/common/plat_gicv3.c
|
|
|
|
PLAT_BL_COMMON_SOURCES := \
|
|
${AGX5_GICv3_SOURCES} \
|
|
drivers/cadence/combo_phy/cdns_combo_phy.c \
|
|
drivers/cadence/emmc/cdns_sdmmc.c \
|
|
drivers/cadence/nand/cdns_nand.c \
|
|
drivers/delay_timer/delay_timer.c \
|
|
drivers/delay_timer/generic_delay_timer.c \
|
|
drivers/ti/uart/aarch64/16550_console.S \
|
|
plat/intel/soc/common/aarch64/platform_common.c \
|
|
plat/intel/soc/common/aarch64/plat_helpers.S \
|
|
plat/intel/soc/common/drivers/ccu/ncore_ccu.c \
|
|
plat/intel/soc/common/drivers/combophy/combophy.c \
|
|
plat/intel/soc/common/drivers/sdmmc/sdmmc.c \
|
|
plat/intel/soc/common/drivers/ddr/ddr.c \
|
|
plat/intel/soc/common/drivers/nand/nand.c \
|
|
plat/intel/soc/common/socfpga_delay_timer.c
|
|
|
|
BL2_SOURCES += \
|
|
common/desc_image_load.c \
|
|
lib/xlat_tables_v2/aarch64/enable_mmu.S \
|
|
lib/xlat_tables_v2/xlat_tables_context.c \
|
|
lib/xlat_tables_v2/xlat_tables_core.c \
|
|
lib/xlat_tables_v2/aarch64/xlat_tables_arch.c \
|
|
lib/xlat_tables_v2/xlat_tables_utils.c \
|
|
drivers/mmc/mmc.c \
|
|
drivers/intel/soc/stratix10/io/s10_memmap_qspi.c \
|
|
drivers/io/io_storage.c \
|
|
drivers/io/io_block.c \
|
|
drivers/io/io_fip.c \
|
|
drivers/io/io_mtd.c \
|
|
drivers/partition/partition.c \
|
|
drivers/partition/gpt.c \
|
|
drivers/synopsys/emmc/dw_mmc.c \
|
|
lib/cpus/aarch64/cortex_a55.S \
|
|
lib/cpus/aarch64/cortex_a76.S \
|
|
plat/intel/soc/agilex5/soc/agilex5_clock_manager.c \
|
|
plat/intel/soc/agilex5/soc/agilex5_memory_controller.c \
|
|
plat/intel/soc/agilex5/soc/agilex5_mmc.c \
|
|
plat/intel/soc/agilex5/soc/agilex5_pinmux.c \
|
|
plat/intel/soc/agilex5/soc/agilex5_power_manager.c \
|
|
plat/intel/soc/common/bl2_plat_mem_params_desc.c \
|
|
plat/intel/soc/common/socfpga_image_load.c \
|
|
plat/intel/soc/common/socfpga_storage.c \
|
|
plat/intel/soc/common/socfpga_vab.c \
|
|
plat/intel/soc/common/soc/socfpga_emac.c \
|
|
plat/intel/soc/common/soc/socfpga_firewall.c \
|
|
plat/intel/soc/common/soc/socfpga_handoff.c \
|
|
plat/intel/soc/common/soc/socfpga_mailbox.c \
|
|
plat/intel/soc/common/soc/socfpga_reset_manager.c \
|
|
plat/intel/soc/common/drivers/qspi/cadence_qspi.c \
|
|
plat/intel/soc/agilex5/bl2_plat_setup.c \
|
|
plat/intel/soc/common/drivers/wdt/watchdog.c
|
|
|
|
include lib/zlib/zlib.mk
|
|
PLAT_INCLUDES += -Ilib/zlib
|
|
BL2_SOURCES += $(ZLIB_SOURCES)
|
|
|
|
BL31_SOURCES += \
|
|
drivers/arm/cci/cci.c \
|
|
${XLAT_TABLES_LIB_SRCS} \
|
|
lib/cpus/aarch64/aem_generic.S \
|
|
lib/cpus/aarch64/cortex_a55.S \
|
|
lib/cpus/aarch64/cortex_a76.S \
|
|
plat/common/plat_psci_common.c \
|
|
plat/intel/soc/agilex5/bl31_plat_setup.c \
|
|
plat/intel/soc/agilex5/soc/agilex5_power_manager.c \
|
|
plat/intel/soc/common/socfpga_psci.c \
|
|
plat/intel/soc/common/socfpga_sip_svc.c \
|
|
plat/intel/soc/common/socfpga_sip_svc_v2.c \
|
|
plat/intel/soc/common/socfpga_topology.c \
|
|
plat/intel/soc/common/sip/socfpga_sip_ecc.c \
|
|
plat/intel/soc/common/sip/socfpga_sip_fcs.c \
|
|
plat/intel/soc/common/soc/socfpga_mailbox.c \
|
|
plat/intel/soc/common/soc/socfpga_reset_manager.c
|
|
|
|
# Configs for A76 and A55
|
|
HW_ASSISTED_COHERENCY := 1
|
|
USE_COHERENT_MEM := 0
|
|
CTX_INCLUDE_AARCH32_REGS := 0
|
|
ERRATA_A55_1530923 := 1
|
|
|
|
$(eval $(call add_define,ARM_PRELOADED_DTB_BASE))
|
|
|
|
PROGRAMMABLE_RESET_ADDRESS := 0
|
|
RESET_TO_BL2 := 1
|
|
BL2_INV_DCACHE := 0
|
|
MULTI_CONSOLE_API := 1
|