mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00
refactor(neoverse-rd): move defines out of platform_def.h
Presently, A75/V1/N1 CPU based platforms have platform port specific macros defined within their platform_def.h file. To enhance organization and appropriateness, relocate these definitions to nrd_arm_platform_def1.h. Signed-off-by: Rohit Mathew <rohit.mathew@arm.com> Change-Id: I1f55192185df1509756bc2ef022e5aed0724dd05
This commit is contained in:
parent
e1eb21627d
commit
30625abd45
5 changed files with 21 additions and 57 deletions
|
@ -34,6 +34,20 @@
|
|||
NRD_MAX_CPUS_PER_CLUSTER * \
|
||||
NRD_MAX_PE_PER_CPU)
|
||||
|
||||
/*******************************************************************************
|
||||
* PA/VA config
|
||||
******************************************************************************/
|
||||
|
||||
#ifdef __aarch64__
|
||||
#define PLAT_PHY_ADDR_SPACE_SIZE NRD_REMOTE_CHIP_MEM_OFFSET( \
|
||||
NRD_CHIP_COUNT)
|
||||
#define PLAT_VIRT_ADDR_SPACE_SIZE NRD_REMOTE_CHIP_MEM_OFFSET( \
|
||||
NRD_CHIP_COUNT)
|
||||
#else
|
||||
#define PLAT_PHY_ADDR_SPACE_SIZE (1ULL << 32)
|
||||
#define PLAT_VIRT_ADDR_SPACE_SIZE (1ULL << 32)
|
||||
#endif
|
||||
|
||||
/*******************************************************************************
|
||||
* XLAT definitions
|
||||
******************************************************************************/
|
||||
|
@ -172,6 +186,13 @@
|
|||
|
||||
#define PLAT_ARM_NSTIMER_FRAME_ID (0)
|
||||
|
||||
/*******************************************************************************
|
||||
* Power config
|
||||
******************************************************************************/
|
||||
|
||||
#define CSS_SYSTEM_PWR_DMN_LVL ARM_PWR_LVL2
|
||||
#define PLAT_MAX_PWR_LVL ARM_PWR_LVL1
|
||||
|
||||
/*******************************************************************************
|
||||
* Flash config
|
||||
******************************************************************************/
|
||||
|
|
|
@ -27,30 +27,12 @@
|
|||
#define RDN1EDGE_DMC620_BASE0 UL(0x4e000000)
|
||||
#define RDN1EDGE_DMC620_BASE1 UL(0x4e100000)
|
||||
|
||||
/* System power domain level */
|
||||
#define CSS_SYSTEM_PWR_DMN_LVL ARM_PWR_LVL2
|
||||
|
||||
#define PLAT_MAX_PWR_LVL ARM_PWR_LVL1
|
||||
|
||||
/* Virtual address used by dynamic mem_protect for chunk_base */
|
||||
#define PLAT_ARM_MEM_PROTEC_VA_FRAME UL(0xc0000000)
|
||||
|
||||
/* Maximum number of address bits used per chip */
|
||||
#define NRD_ADDR_BITS_PER_CHIP U(42)
|
||||
|
||||
/*
|
||||
* Physical and virtual address space limits for MMU in AARCH64 & AARCH32 modes
|
||||
*/
|
||||
#ifdef __aarch64__
|
||||
#define PLAT_PHY_ADDR_SPACE_SIZE NRD_REMOTE_CHIP_MEM_OFFSET( \
|
||||
NRD_CHIP_COUNT)
|
||||
#define PLAT_VIRT_ADDR_SPACE_SIZE NRD_REMOTE_CHIP_MEM_OFFSET( \
|
||||
NRD_CHIP_COUNT)
|
||||
#else
|
||||
#define PLAT_PHY_ADDR_SPACE_SIZE (1ULL << 32)
|
||||
#define PLAT_VIRT_ADDR_SPACE_SIZE (1ULL << 32)
|
||||
#endif
|
||||
|
||||
/* GIC related constants */
|
||||
#define PLAT_ARM_GICD_BASE UL(0x30000000)
|
||||
#define PLAT_ARM_GICC_BASE UL(0x2C000000)
|
||||
|
|
|
@ -23,9 +23,6 @@
|
|||
#define PLAT_CSS_MHU_BASE UL(0x45400000)
|
||||
#define PLAT_MHUV2_BASE PLAT_CSS_MHU_BASE
|
||||
|
||||
#define CSS_SYSTEM_PWR_DMN_LVL ARM_PWR_LVL2
|
||||
#define PLAT_MAX_PWR_LVL ARM_PWR_LVL1
|
||||
|
||||
/* TZC Related Constants */
|
||||
#define PLAT_ARM_TZC_BASE UL(0x21830000)
|
||||
#define PLAT_ARM_TZC_FILTERS TZC_400_REGION_ATTR_FILTER_BIT(0)
|
||||
|
@ -54,17 +51,6 @@
|
|||
/* Maximum number of address bits used per chip */
|
||||
#define NRD_ADDR_BITS_PER_CHIP U(42)
|
||||
|
||||
/*
|
||||
* Physical and virtual address space limits for MMU in AARCH64 & AARCH32 modes
|
||||
*/
|
||||
#ifdef __aarch64__
|
||||
#define PLAT_PHY_ADDR_SPACE_SIZE (1ULL << NRD_ADDR_BITS_PER_CHIP)
|
||||
#define PLAT_VIRT_ADDR_SPACE_SIZE (1ULL << NRD_ADDR_BITS_PER_CHIP)
|
||||
#else
|
||||
#define PLAT_PHY_ADDR_SPACE_SIZE (1ULL << 32)
|
||||
#define PLAT_VIRT_ADDR_SPACE_SIZE (1ULL << 32)
|
||||
#endif
|
||||
|
||||
/* GIC related constants */
|
||||
#define PLAT_ARM_GICD_BASE UL(0x30000000)
|
||||
#define PLAT_ARM_GICC_BASE UL(0x2C000000)
|
||||
|
|
|
@ -23,9 +23,6 @@
|
|||
#define PLAT_CSS_MHU_BASE UL(0x45400000)
|
||||
#define PLAT_MHUV2_BASE PLAT_CSS_MHU_BASE
|
||||
|
||||
#define CSS_SYSTEM_PWR_DMN_LVL ARM_PWR_LVL2
|
||||
#define PLAT_MAX_PWR_LVL ARM_PWR_LVL1
|
||||
|
||||
/* TZC Related Constants */
|
||||
#define PLAT_ARM_TZC_BASE UL(0x21830000)
|
||||
#define TZC400_BASE(n) (PLAT_ARM_TZC_BASE + \
|
||||
|
@ -55,12 +52,6 @@
|
|||
/* Remote chip address offset (4TB per chip) */
|
||||
#define NRD_ADDR_BITS_PER_CHIP U(42)
|
||||
|
||||
/* Physical and virtual address space limits for MMU in AARCH64 mode */
|
||||
#define PLAT_PHY_ADDR_SPACE_SIZE NRD_REMOTE_CHIP_MEM_OFFSET( \
|
||||
NRD_CHIP_COUNT)
|
||||
#define PLAT_VIRT_ADDR_SPACE_SIZE NRD_REMOTE_CHIP_MEM_OFFSET( \
|
||||
NRD_CHIP_COUNT)
|
||||
|
||||
/* GIC related constants */
|
||||
#define PLAT_ARM_GICD_BASE UL(0x30000000)
|
||||
#define PLAT_ARM_GICC_BASE UL(0x2C000000)
|
||||
|
|
|
@ -27,25 +27,9 @@
|
|||
#define SGI575_DMC620_BASE0 UL(0x4e000000)
|
||||
#define SGI575_DMC620_BASE1 UL(0x4e100000)
|
||||
|
||||
/* System power domain level */
|
||||
#define CSS_SYSTEM_PWR_DMN_LVL ARM_PWR_LVL2
|
||||
|
||||
#define PLAT_MAX_PWR_LVL ARM_PWR_LVL1
|
||||
|
||||
/* Maximum number of address bits used per chip */
|
||||
#define NRD_ADDR_BITS_PER_CHIP U(36)
|
||||
|
||||
/*
|
||||
* Physical and virtual address space limits for MMU in AARCH64 & AARCH32 modes
|
||||
*/
|
||||
#ifdef __aarch64__
|
||||
#define PLAT_PHY_ADDR_SPACE_SIZE (1ULL << NRD_ADDR_BITS_PER_CHIP)
|
||||
#define PLAT_VIRT_ADDR_SPACE_SIZE (1ULL << NRD_ADDR_BITS_PER_CHIP)
|
||||
#else
|
||||
#define PLAT_PHY_ADDR_SPACE_SIZE (1ULL << 32)
|
||||
#define PLAT_VIRT_ADDR_SPACE_SIZE (1ULL << 32)
|
||||
#endif
|
||||
|
||||
/* GIC related constants */
|
||||
#define PLAT_ARM_GICD_BASE UL(0x30000000)
|
||||
#define PLAT_ARM_GICC_BASE UL(0x2C000000)
|
||||
|
|
Loading…
Add table
Reference in a new issue