Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 1 | # |
Pranav Madhu | e7fa8fb | 2024-01-22 21:41:14 +0530 | [diff] [blame] | 2 | # Copyright (c) 2018-2024, Arm Limited and Contributors. All rights reserved. |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
Chandni Cherukuri | d61a705 | 2018-08-01 15:58:48 +0530 | [diff] [blame] | 7 | CSS_USE_SCMI_SDS_DRIVER := 1 |
| 8 | |
Rohit Mathew | 20d4a21 | 2024-02-03 21:20:17 +0000 | [diff] [blame] | 9 | NRD_COMMON_BASE := plat/arm/board/neoverse_rd/common |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 10 | |
Manish Pandey | d419e22 | 2023-02-13 12:39:17 +0000 | [diff] [blame] | 11 | ENABLE_FEAT_RAS := 1 |
| 12 | |
Sughosh Ganu | 3f7e79d | 2018-05-16 18:48:56 +0530 | [diff] [blame] | 13 | SDEI_SUPPORT := 0 |
| 14 | |
| 15 | EL3_EXCEPTION_HANDLING := 0 |
| 16 | |
Manish Pandey | 0e3379d | 2022-10-10 11:43:08 +0100 | [diff] [blame] | 17 | HANDLE_EA_EL3_FIRST_NS := 0 |
Sughosh Ganu | 3f7e79d | 2018-05-16 18:48:56 +0530 | [diff] [blame] | 18 | |
Rohit Mathew | 644d9e2 | 2024-02-03 19:06:16 +0000 | [diff] [blame] | 19 | NRD_CHIP_COUNT := 1 |
Vijayenthiran Subramaniam | bc48991 | 2019-12-26 17:45:58 +0530 | [diff] [blame] | 20 | |
Rohit Mathew | 644d9e2 | 2024-02-03 19:06:16 +0000 | [diff] [blame] | 21 | NRD_PLATFORM_VARIANT := 0 |
Aditya Angadi | 0640222 | 2021-03-20 12:06:15 +0530 | [diff] [blame] | 22 | |
Vijayenthiran Subramaniam | 063bb73 | 2021-11-25 21:54:30 +0530 | [diff] [blame] | 23 | # Do not enable SVE |
| 24 | ENABLE_SVE_FOR_NS := 0 |
| 25 | |
Nishant Sharma | 469a6f6 | 2022-04-19 10:23:59 +0100 | [diff] [blame] | 26 | CTX_INCLUDE_FPREGS := 1 |
| 27 | |
Rohit Mathew | 20d4a21 | 2024-02-03 21:20:17 +0000 | [diff] [blame] | 28 | INTERCONNECT_SOURCES := ${NRD_COMMON_BASE}/nrd_interconnect.c |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 29 | |
Rohit Mathew | 20d4a21 | 2024-02-03 21:20:17 +0000 | [diff] [blame] | 30 | PLAT_INCLUDES += -I${NRD_COMMON_BASE}/include |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 31 | |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 32 | # GIC-600 configuration |
Andre Przywara | e1cc130 | 2020-03-25 15:50:38 +0000 | [diff] [blame] | 33 | GICV3_SUPPORT_GIC600 := 1 |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 34 | |
| 35 | # Include GICv3 driver files |
| 36 | include drivers/arm/gic/v3/gicv3.mk |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 37 | |
Alexei Fedorov | 84f1b5d | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 38 | ENT_GIC_SOURCES := ${GICV3_SOURCES} \ |
| 39 | plat/common/plat_gicv3.c \ |
| 40 | plat/arm/common/arm_gicv3.c |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 41 | |
Rohit Mathew | 20d4a21 | 2024-02-03 21:20:17 +0000 | [diff] [blame] | 42 | PLAT_BL_COMMON_SOURCES += ${NRD_COMMON_BASE}/arch/aarch64/nrd_helper.S |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 43 | |
Aditya Angadi | 20b4841 | 2019-04-16 11:29:14 +0530 | [diff] [blame] | 44 | BL1_SOURCES += ${INTERCONNECT_SOURCES} \ |
Rohit Mathew | 29fb985 | 2023-12-31 18:26:15 +0000 | [diff] [blame] | 45 | ${NRD_COMMON_BASE}/nrd_bl1_setup.c \ |
Aditya Angadi | 20b4841 | 2019-04-16 11:29:14 +0530 | [diff] [blame] | 46 | drivers/arm/sbsa/sbsa.c |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 47 | |
Rohit Mathew | 20d4a21 | 2024-02-03 21:20:17 +0000 | [diff] [blame] | 48 | BL2_SOURCES += ${NRD_COMMON_BASE}/nrd_image_load.c \ |
Nishant Sharma | 289f782 | 2021-11-30 09:31:48 +0000 | [diff] [blame] | 49 | drivers/arm/css/sds/sds.c |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 50 | |
Chandni Cherukuri | a3f6613 | 2018-08-10 11:17:58 +0530 | [diff] [blame] | 51 | BL31_SOURCES += ${INTERCONNECT_SOURCES} \ |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 52 | ${ENT_GIC_SOURCES} \ |
Rohit Mathew | 20d4a21 | 2024-02-03 21:20:17 +0000 | [diff] [blame] | 53 | ${NRD_COMMON_BASE}/nrd_bl31_setup.c \ |
| 54 | ${NRD_COMMON_BASE}/nrd_topology.c \ |
Pranav Madhu | e7fa8fb | 2024-01-22 21:41:14 +0530 | [diff] [blame] | 55 | drivers/delay_timer/generic_delay_timer.c |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 56 | |
Rohit Mathew | 644d9e2 | 2024-02-03 19:06:16 +0000 | [diff] [blame] | 57 | $(eval $(call add_define,NRD_CHIP_COUNT)) |
Vijayenthiran Subramaniam | bc48991 | 2019-12-26 17:45:58 +0530 | [diff] [blame] | 58 | |
Rohit Mathew | 644d9e2 | 2024-02-03 19:06:16 +0000 | [diff] [blame] | 59 | $(eval $(call add_define,NRD_PLATFORM_VARIANT)) |
Aditya Angadi | 0640222 | 2021-03-20 12:06:15 +0530 | [diff] [blame] | 60 | |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 61 | override CSS_LOAD_SCP_IMAGES := 0 |
| 62 | override NEED_BL2U := no |
Sudipto Paul | c451010 | 2018-04-16 17:46:50 +0530 | [diff] [blame] | 63 | override ARM_PLAT_MT := 1 |
Pranav Madhu | 4c47432 | 2021-04-20 12:01:46 +0530 | [diff] [blame] | 64 | override PSCI_EXTENDED_STATE_ID := 1 |
| 65 | override ARM_RECOM_STATE_ID_ENC := 1 |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 66 | |
| 67 | # System coherency is managed in hardware |
| 68 | HW_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. |
| 72 | USE_COHERENT_MEM := 0 |
| 73 | |
| 74 | include plat/arm/common/arm_common.mk |
| 75 | include plat/arm/css/common/css_common.mk |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 76 | include plat/arm/board/common/board_common.mk |