Deepak Pandey | 80d37c2 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 1 | # |
sah01 | fe2b37f | 2021-06-06 14:38:01 +0530 | [diff] [blame^] | 2 | # Copyright (c) 2018-2022, Arm Limited. All rights reserved. |
Deepak Pandey | 80d37c2 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | |
| 8 | N1SDP_BASE := plat/arm/board/n1sdp |
| 9 | |
| 10 | INTERCONNECT_SOURCES := ${N1SDP_BASE}/n1sdp_interconnect.c |
| 11 | |
| 12 | PLAT_INCLUDES := -I${N1SDP_BASE}/include |
| 13 | |
| 14 | |
John Tsichritzis | da6d75a | 2019-02-19 13:49:06 +0000 | [diff] [blame] | 15 | N1SDP_CPU_SOURCES := lib/cpus/aarch64/neoverse_n1.S |
Deepak Pandey | 80d37c2 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 16 | |
Alexei Fedorov | a6ea06f | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 17 | # GIC-600 configuration |
Andre Przywara | b4ad365 | 2020-03-25 15:50:38 +0000 | [diff] [blame] | 18 | GICV3_SUPPORT_GIC600 := 1 |
Alexei Fedorov | a6ea06f | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 19 | GICV3_IMPL_GIC600_MULTICHIP := 1 |
Deepak Pandey | 80d37c2 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 20 | |
Alexei Fedorov | a6ea06f | 2020-03-23 18:45:17 +0000 | [diff] [blame] | 21 | # Include GICv3 driver files |
| 22 | include drivers/arm/gic/v3/gicv3.mk |
| 23 | |
| 24 | N1SDP_GIC_SOURCES := ${GICV3_SOURCES} \ |
Deepak Pandey | 80d37c2 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 25 | plat/common/plat_gicv3.c \ |
| 26 | plat/arm/common/arm_gicv3.c \ |
Deepak Pandey | 80d37c2 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 27 | |
| 28 | PLAT_BL_COMMON_SOURCES := ${N1SDP_BASE}/n1sdp_plat.c \ |
| 29 | ${N1SDP_BASE}/aarch64/n1sdp_helper.S |
| 30 | |
sah01 | fe2b37f | 2021-06-06 14:38:01 +0530 | [diff] [blame^] | 31 | BL1_SOURCES := ${N1SDP_CPU_SOURCES} \ |
| 32 | ${INTERCONNECT_SOURCES} \ |
| 33 | ${N1SDP_BASE}/n1sdp_err.c \ |
| 34 | ${N1SDP_BASE}/n1sdp_trusted_boot.c \ |
| 35 | ${N1SDP_BASE}/n1sdp_bl1_setup.c \ |
| 36 | drivers/arm/sbsa/sbsa.c |
| 37 | |
| 38 | BL2_SOURCES := ${N1SDP_BASE}/n1sdp_security.c \ |
| 39 | ${N1SDP_BASE}/n1sdp_err.c \ |
| 40 | ${N1SDP_BASE}/n1sdp_trusted_boot.c \ |
| 41 | lib/utils/mem_region.c \ |
| 42 | ${N1SDP_BASE}/n1sdp_bl2_setup.c \ |
| 43 | drivers/arm/css/sds/sds.c |
Deepak Pandey | 80d37c2 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 44 | |
| 45 | BL31_SOURCES := ${N1SDP_CPU_SOURCES} \ |
| 46 | ${INTERCONNECT_SOURCES} \ |
| 47 | ${N1SDP_GIC_SOURCES} \ |
sah01 | fe2b37f | 2021-06-06 14:38:01 +0530 | [diff] [blame^] | 48 | ${N1SDP_BASE}/n1sdp_bl31_setup.c \ |
Deepak Pandey | 80d37c2 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 49 | ${N1SDP_BASE}/n1sdp_topology.c \ |
Manoj Kumar | de8bc83 | 2019-06-21 17:07:13 +0100 | [diff] [blame] | 50 | ${N1SDP_BASE}/n1sdp_security.c \ |
| 51 | drivers/arm/css/sds/sds.c |
Deepak Pandey | 80d37c2 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 52 | |
Andre Przywara | 000653b | 2020-07-06 11:19:41 +0530 | [diff] [blame] | 53 | FDT_SOURCES += fdts/${PLAT}-single-chip.dts \ |
sah01 | fe2b37f | 2021-06-06 14:38:01 +0530 | [diff] [blame^] | 54 | fdts/${PLAT}-multi-chip.dts \ |
| 55 | ${N1SDP_BASE}/fdts/n1sdp_fw_config.dts \ |
| 56 | ${N1SDP_BASE}/fdts/n1sdp_tb_fw_config.dts |
| 57 | |
| 58 | FW_CONFIG := ${BUILD_PLAT}/fdts/n1sdp_fw_config.dtb |
| 59 | TB_FW_CONFIG := ${BUILD_PLAT}/fdts/n1sdp_tb_fw_config.dtb |
| 60 | |
| 61 | # Add the FW_CONFIG to FIP and specify the same to certtool |
| 62 | $(eval $(call TOOL_ADD_PAYLOAD,${FW_CONFIG},--fw-config,${FW_CONFIG})) |
| 63 | # Add the TB_FW_CONFIG to FIP and specify the same to certtool |
| 64 | $(eval $(call TOOL_ADD_PAYLOAD,${TB_FW_CONFIG},--tb-fw-config,${TB_FW_CONFIG})) |
| 65 | |
| 66 | # Setting to 0 as no NVCTR in N1SDP |
| 67 | N1SDP_FW_NVCTR_VAL := 0 |
| 68 | TFW_NVCTR_VAL := ${N1SDP_FW_NVCTR_VAL} |
| 69 | NTFW_NVCTR_VAL := ${N1SDP_FW_NVCTR_VAL} |
| 70 | |
| 71 | # Add N1SDP_FW_NVCTR_VAL |
| 72 | $(eval $(call add_define,N1SDP_FW_NVCTR_VAL)) |
Deepak Pandey | 80d37c2 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 73 | |
| 74 | # TF-A not required to load the SCP Images |
| 75 | override CSS_LOAD_SCP_IMAGES := 0 |
| 76 | |
Deepak Pandey | 80d37c2 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 77 | override NEED_BL2U := no |
| 78 | |
Deepak Pandey | 80d37c2 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 79 | # 32 bit mode not supported |
| 80 | override CTX_INCLUDE_AARCH32_REGS := 0 |
| 81 | |
| 82 | override ARM_PLAT_MT := 1 |
| 83 | |
| 84 | # Select SCMI/SDS drivers instead of SCPI/BOM driver for communicating with the |
| 85 | # SCP during power management operations and for SCP RAM Firmware transfer. |
| 86 | CSS_USE_SCMI_SDS_DRIVER := 1 |
| 87 | |
| 88 | # System coherency is managed in hardware |
| 89 | HW_ASSISTED_COHERENCY := 1 |
| 90 | |
| 91 | # When building for systems with hardware-assisted coherency, there's no need to |
| 92 | # use USE_COHERENT_MEM. Require that USE_COHERENT_MEM must be set to 0 too. |
| 93 | USE_COHERENT_MEM := 0 |
Chandni Cherukuri | 303b6d0 | 2020-03-05 11:49:57 +0530 | [diff] [blame] | 94 | |
| 95 | # Enable the flag since N1SDP has a system level cache |
Javier Almansa Sobrino | 25bbbd2 | 2020-10-23 13:22:07 +0100 | [diff] [blame] | 96 | NEOVERSE_Nx_EXTERNAL_LLC := 1 |
Deepak Pandey | 80d37c2 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 97 | include plat/arm/common/arm_common.mk |
| 98 | include plat/arm/css/common/css_common.mk |
Deepak Pandey | 80d37c2 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 99 | include plat/arm/board/common/board_common.mk |