Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 1 | # |
Manish V Badarkhe | 95e9d74 | 2023-04-19 13:27:59 +0100 | [diff] [blame^] | 2 | # Copyright (c) 2018-2023, Arm Limited. All rights reserved. |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
Manish V Badarkhe | 95e9d74 | 2023-04-19 13:27:59 +0100 | [diff] [blame^] | 7 | $(warning Platform ${PLAT} is deprecated. \ |
| 8 | Some of the features might not work as expected) |
| 9 | |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 10 | include plat/arm/css/sgi/sgi-common.mk |
| 11 | |
Chandni Cherukuri | 533b554 | 2019-02-22 16:44:49 +0530 | [diff] [blame] | 12 | RDE1EDGE_BASE = plat/arm/board/rde1edge |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 13 | |
Chandni Cherukuri | 533b554 | 2019-02-22 16:44:49 +0530 | [diff] [blame] | 14 | PLAT_INCLUDES += -I${RDE1EDGE_BASE}/include/ |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 15 | |
John Tsichritzis | 16e6d9f | 2019-02-19 14:01:55 +0000 | [diff] [blame] | 16 | SGI_CPU_SOURCES := lib/cpus/aarch64/neoverse_e1.S |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 17 | |
Aditya Angadi | 502d0ac | 2020-11-18 08:27:15 +0530 | [diff] [blame] | 18 | PLAT_BL_COMMON_SOURCES += ${CSS_ENT_BASE}/sgi_plat.c |
| 19 | |
Ambroise Vincent | fa42c9e | 2019-07-04 14:58:45 +0100 | [diff] [blame] | 20 | BL1_SOURCES += ${SGI_CPU_SOURCES} \ |
| 21 | ${RDE1EDGE_BASE}/rde1edge_err.c |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 22 | |
Chandni Cherukuri | 533b554 | 2019-02-22 16:44:49 +0530 | [diff] [blame] | 23 | BL2_SOURCES += ${RDE1EDGE_BASE}/rde1edge_plat.c \ |
| 24 | ${RDE1EDGE_BASE}/rde1edge_security.c \ |
Ambroise Vincent | fa42c9e | 2019-07-04 14:58:45 +0100 | [diff] [blame] | 25 | ${RDE1EDGE_BASE}/rde1edge_err.c \ |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 26 | drivers/arm/tzc/tzc_dmc620.c \ |
| 27 | lib/utils/mem_region.c \ |
| 28 | plat/arm/common/arm_nor_psci_mem_protect.c |
| 29 | |
| 30 | BL31_SOURCES += ${SGI_CPU_SOURCES} \ |
Chandni Cherukuri | 533b554 | 2019-02-22 16:44:49 +0530 | [diff] [blame] | 31 | ${RDE1EDGE_BASE}/rde1edge_plat.c \ |
Vijayenthiran Subramaniam | f5cb00f | 2019-12-27 19:27:57 +0530 | [diff] [blame] | 32 | ${RDE1EDGE_BASE}/rde1edge_topology.c \ |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 33 | drivers/cfi/v2m/v2m_flash.c \ |
| 34 | lib/utils/mem_region.c \ |
| 35 | plat/arm/common/arm_nor_psci_mem_protect.c |
| 36 | |
Max Shvetsov | 06dba29 | 2019-12-06 11:50:12 +0000 | [diff] [blame] | 37 | ifeq (${TRUSTED_BOARD_BOOT}, 1) |
| 38 | BL1_SOURCES += ${RDE1EDGE_BASE}/rde1edge_trusted_boot.c |
| 39 | BL2_SOURCES += ${RDE1EDGE_BASE}/rde1edge_trusted_boot.c |
| 40 | endif |
| 41 | |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 42 | # Add the FDT_SOURCES and options for Dynamic Config |
Manish V Badarkhe | 64616a5 | 2020-05-31 08:53:40 +0100 | [diff] [blame] | 43 | FDT_SOURCES += ${RDE1EDGE_BASE}/fdts/${PLAT}_fw_config.dts \ |
| 44 | ${RDE1EDGE_BASE}/fdts/${PLAT}_tb_fw_config.dts |
| 45 | FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_fw_config.dtb |
| 46 | TB_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_tb_fw_config.dtb |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 47 | |
Manish V Badarkhe | 64616a5 | 2020-05-31 08:53:40 +0100 | [diff] [blame] | 48 | # Add the FW_CONFIG to FIP and specify the same to certtool |
Anders Dellien | 3f69474 | 2020-08-23 19:32:48 +0100 | [diff] [blame] | 49 | $(eval $(call TOOL_ADD_PAYLOAD,${FW_CONFIG},--fw-config,${FW_CONFIG})) |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 50 | # Add the TB_FW_CONFIG to FIP and specify the same to certtool |
Anders Dellien | 3f69474 | 2020-08-23 19:32:48 +0100 | [diff] [blame] | 51 | $(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config,${TB_FW_CONFIG})) |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 52 | |
Chandni Cherukuri | 533b554 | 2019-02-22 16:44:49 +0530 | [diff] [blame] | 53 | FDT_SOURCES += ${RDE1EDGE_BASE}/fdts/${PLAT}_nt_fw_config.dts |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 54 | NT_FW_CONFIG := ${BUILD_PLAT}/fdts/${PLAT}_nt_fw_config.dtb |
| 55 | |
| 56 | # Add the NT_FW_CONFIG to FIP and specify the same to certtool |
Anders Dellien | 3f69474 | 2020-08-23 19:32:48 +0100 | [diff] [blame] | 57 | $(eval $(call TOOL_ADD_PAYLOAD,${NT_FW_CONFIG},--nt-fw-config,${NT_FW_CONFIG})) |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 58 | |
Vijayenthiran Subramaniam | bc48991 | 2019-12-26 17:45:58 +0530 | [diff] [blame] | 59 | ifneq ($(CSS_SGI_CHIP_COUNT),1) |
| 60 | $(error "Chip count for RDE1Edge should be 1, currently set to \ |
| 61 | ${CSS_SGI_CHIP_COUNT}.") |
| 62 | endif |
| 63 | |
Aditya Angadi | 0640222 | 2021-03-20 12:06:15 +0530 | [diff] [blame] | 64 | ifneq ($(CSS_SGI_PLATFORM_VARIANT),0) |
| 65 | $(error "CSS_SGI_PLATFORM_VARIANT for RD-E1-Edge should always be 0, \ |
| 66 | currently set to ${CSS_SGI_PLATFORM_VARIANT}.") |
| 67 | endif |
| 68 | |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 69 | override CTX_INCLUDE_AARCH32_REGS := 0 |