blob: a09f369cfb7fb6cabbd7137cba1d2c4da998b59a [file] [log] [blame]
Nariman Poushin0ece80f2018-02-26 06:52:04 +00001#
Pranav Madhue7fa8fb2024-01-22 21:41:14 +05302# Copyright (c) 2018-2024, Arm Limited and Contributors. All rights reserved.
Nariman Poushin0ece80f2018-02-26 06:52:04 +00003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
Chandni Cherukurid61a7052018-08-01 15:58:48 +05307CSS_USE_SCMI_SDS_DRIVER := 1
8
Rohit Mathew20d4a212024-02-03 21:20:17 +00009NRD_COMMON_BASE := plat/arm/board/neoverse_rd/common
Nariman Poushin0ece80f2018-02-26 06:52:04 +000010
Manish Pandeyd419e222023-02-13 12:39:17 +000011ENABLE_FEAT_RAS := 1
12
Sughosh Ganu3f7e79d2018-05-16 18:48:56 +053013SDEI_SUPPORT := 0
14
15EL3_EXCEPTION_HANDLING := 0
16
Manish Pandey0e3379d2022-10-10 11:43:08 +010017HANDLE_EA_EL3_FIRST_NS := 0
Sughosh Ganu3f7e79d2018-05-16 18:48:56 +053018
Rohit Mathew644d9e22024-02-03 19:06:16 +000019NRD_CHIP_COUNT := 1
Vijayenthiran Subramaniambc489912019-12-26 17:45:58 +053020
Rohit Mathew644d9e22024-02-03 19:06:16 +000021NRD_PLATFORM_VARIANT := 0
Aditya Angadi06402222021-03-20 12:06:15 +053022
Vijayenthiran Subramaniam063bb732021-11-25 21:54:30 +053023# Do not enable SVE
24ENABLE_SVE_FOR_NS := 0
25
Nishant Sharma469a6f62022-04-19 10:23:59 +010026CTX_INCLUDE_FPREGS := 1
27
Rohit Mathew20d4a212024-02-03 21:20:17 +000028INTERCONNECT_SOURCES := ${NRD_COMMON_BASE}/nrd_interconnect.c
Nariman Poushin0ece80f2018-02-26 06:52:04 +000029
Rohit Mathew20d4a212024-02-03 21:20:17 +000030PLAT_INCLUDES += -I${NRD_COMMON_BASE}/include
Nariman Poushin0ece80f2018-02-26 06:52:04 +000031
Alexei Fedorov84f1b5d2020-03-23 18:45:17 +000032# GIC-600 configuration
Andre Przywarae1cc1302020-03-25 15:50:38 +000033GICV3_SUPPORT_GIC600 := 1
Alexei Fedorov84f1b5d2020-03-23 18:45:17 +000034
35# Include GICv3 driver files
36include drivers/arm/gic/v3/gicv3.mk
Nariman Poushin0ece80f2018-02-26 06:52:04 +000037
Alexei Fedorov84f1b5d2020-03-23 18:45:17 +000038ENT_GIC_SOURCES := ${GICV3_SOURCES} \
39 plat/common/plat_gicv3.c \
40 plat/arm/common/arm_gicv3.c
Nariman Poushin0ece80f2018-02-26 06:52:04 +000041
Rohit Mathew20d4a212024-02-03 21:20:17 +000042PLAT_BL_COMMON_SOURCES += ${NRD_COMMON_BASE}/arch/aarch64/nrd_helper.S
Nariman Poushin0ece80f2018-02-26 06:52:04 +000043
Aditya Angadi20b48412019-04-16 11:29:14 +053044BL1_SOURCES += ${INTERCONNECT_SOURCES} \
Rohit Mathew29fb9852023-12-31 18:26:15 +000045 ${NRD_COMMON_BASE}/nrd_bl1_setup.c \
Aditya Angadi20b48412019-04-16 11:29:14 +053046 drivers/arm/sbsa/sbsa.c
Nariman Poushin0ece80f2018-02-26 06:52:04 +000047
Rohit Mathew20d4a212024-02-03 21:20:17 +000048BL2_SOURCES += ${NRD_COMMON_BASE}/nrd_image_load.c \
Nishant Sharma289f7822021-11-30 09:31:48 +000049 drivers/arm/css/sds/sds.c
Nariman Poushin0ece80f2018-02-26 06:52:04 +000050
Chandni Cherukuria3f66132018-08-10 11:17:58 +053051BL31_SOURCES += ${INTERCONNECT_SOURCES} \
Nariman Poushin0ece80f2018-02-26 06:52:04 +000052 ${ENT_GIC_SOURCES} \
Rohit Mathew20d4a212024-02-03 21:20:17 +000053 ${NRD_COMMON_BASE}/nrd_bl31_setup.c \
54 ${NRD_COMMON_BASE}/nrd_topology.c \
Pranav Madhue7fa8fb2024-01-22 21:41:14 +053055 drivers/delay_timer/generic_delay_timer.c
Nariman Poushin0ece80f2018-02-26 06:52:04 +000056
Rohit Mathew644d9e22024-02-03 19:06:16 +000057$(eval $(call add_define,NRD_CHIP_COUNT))
Vijayenthiran Subramaniambc489912019-12-26 17:45:58 +053058
Rohit Mathew644d9e22024-02-03 19:06:16 +000059$(eval $(call add_define,NRD_PLATFORM_VARIANT))
Aditya Angadi06402222021-03-20 12:06:15 +053060
Nariman Poushin0ece80f2018-02-26 06:52:04 +000061override CSS_LOAD_SCP_IMAGES := 0
62override NEED_BL2U := no
Sudipto Paulc4510102018-04-16 17:46:50 +053063override ARM_PLAT_MT := 1
Pranav Madhu4c474322021-04-20 12:01:46 +053064override PSCI_EXTENDED_STATE_ID := 1
65override ARM_RECOM_STATE_ID_ENC := 1
Nariman Poushin0ece80f2018-02-26 06:52:04 +000066
67# System coherency is managed in hardware
68HW_ASSISTED_COHERENCY := 1
69
70# When building for systems with hardware-assisted coherency, there's no need to
71# use USE_COHERENT_MEM. Require that USE_COHERENT_MEM must be set to 0 too.
72USE_COHERENT_MEM := 0
73
74include plat/arm/common/arm_common.mk
75include plat/arm/css/common/css_common.mk
Nariman Poushin0ece80f2018-02-26 06:52:04 +000076include plat/arm/board/common/board_common.mk