| 1 |
/* |
| 2 |
* Copyright (c) 2024, Arm Limited and Contributors. All rights reserved. |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: BSD-3-Clause |
| 5 |
*/ |
| 6 |
|
| 7 |
#ifndef PLATFORM_DEF_H |
| 8 |
#define PLATFORM_DEF_H |
| 9 |
|
| 10 |
#include <plat/arm/css/common/css_def.h> |
| 11 |
#include <nrd_css_fw_def3.h> |
| 12 |
#include <nrd_pas_def3.h> |
| 13 |
#include <nrd_plat_arm_def3.h> |
| 14 |
#include <nrd_ros_fw_def3.h> |
| 15 |
|
| 16 |
/* Remote chip address offset */ |
| 17 |
#define NRD_REMOTE_CHIP_MEM_OFFSET(n) \ |
| 18 |
((ULL(1) << NRD_ADDR_BITS_PER_CHIP) * (n)) |
| 19 |
|
| 20 |
/* PE-Cluster count */ |
| 21 |
#if (NRD_PLATFORM_VARIANT == 1) |
| 22 |
#define PLAT_ARM_CLUSTER_COUNT U(8) |
| 23 |
#elif (NRD_PLATFORM_VARIANT == 2) |
| 24 |
#define PLAT_ARM_CLUSTER_COUNT U(4) |
| 25 |
#else |
| 26 |
#define PLAT_ARM_CLUSTER_COUNT U(16) |
| 27 |
#endif |
| 28 |
#define NRD_MAX_CPUS_PER_CLUSTER U(1) |
| 29 |
#define NRD_MAX_PE_PER_CPU U(1) |
| 30 |
|
| 31 |
/* Shared RAM*/ |
| 32 |
#define NRD_CSS_SHARED_SRAM_SIZE UL(0x000100000) |
| 33 |
|
| 34 |
/* DRAM1 */ |
| 35 |
#define NRD_CSS_DRAM1_SIZE ULL(0x80000000) |
| 36 |
|
| 37 |
/* DRAM2 */ |
| 38 |
#define NRD_CSS_DRAM2_SIZE ULL(0x180000000) |
| 39 |
|
| 40 |
/* Address bits */ |
| 41 |
#define NRD_ADDR_BITS_PER_CHIP U(36) /* 64GB */ |
| 42 |
|
| 43 |
/* |
| 44 |
* In the current implementation, the RoT Service request that requires the |
| 45 |
* biggest message buffer is the RSE_DELEGATED_ATTEST_GET_PLATFORM_TOKEN. The |
| 46 |
* maximum required buffer size is calculated based on the platform-specific |
| 47 |
* needs of this request. |
| 48 |
*/ |
| 49 |
#define PLAT_RSE_COMMS_PAYLOAD_MAX_SIZE UL(0x1000) |
| 50 |
|
| 51 |
#endif /* PLATFORM_DEF_H */ |