| 1 |
/* |
| 2 |
* Copyright (c) 2018-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 <lib/utils_def.h> |
| 11 |
#include <nrd_css_fw_def1.h> |
| 12 |
#include <nrd_plat_arm_def1.h> |
| 13 |
#include <nrd_ros_fw_def1.h> |
| 14 |
#include <nrd_sdei.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 |
#define PLAT_ARM_CLUSTER_COUNT U(2) |
| 21 |
#define NRD_MAX_CPUS_PER_CLUSTER U(4) |
| 22 |
#define NRD_MAX_PE_PER_CPU U(1) |
| 23 |
|
| 24 |
#define PLAT_CSS_MHU_BASE UL(0x45400000) |
| 25 |
|
| 26 |
/* Base address of DMC-620 instances */ |
| 27 |
#define RDN1EDGE_DMC620_BASE0 UL(0x4e000000) |
| 28 |
#define RDN1EDGE_DMC620_BASE1 UL(0x4e100000) |
| 29 |
|
| 30 |
/* Virtual address used by dynamic mem_protect for chunk_base */ |
| 31 |
#define PLAT_ARM_MEM_PROTEC_VA_FRAME UL(0xc0000000) |
| 32 |
|
| 33 |
/* Maximum number of address bits used per chip */ |
| 34 |
#define NRD_ADDR_BITS_PER_CHIP U(42) |
| 35 |
|
| 36 |
/* GIC related constants */ |
| 37 |
#define PLAT_ARM_GICD_BASE UL(0x30000000) |
| 38 |
#define PLAT_ARM_GICR_BASE UL(0x300C0000) |
| 39 |
|
| 40 |
/* GIC SPI range for multichip */ |
| 41 |
#define NRD_CHIP0_SPI_MIN U(32) |
| 42 |
#define NRD_CHIP0_SPI_MAX U(991) |
| 43 |
|
| 44 |
#endif /* PLATFORM_DEF_H */ |