mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00
refactor(neoverse-rd): clean-up nrd_plat_arm_def2.h file
Consolidate and organize platform port definitions within the nrd_plat_arm_def2.h file. Remove direct references to addresses with corresponding RoS or CSS definitions. Signed-off-by: Rohit Mathew <rohit.mathew@arm.com> Change-Id: Ic43cff90d2cf45760b3f808732754cf7c05a814a
This commit is contained in:
parent
301c01748e
commit
a0bd619859
3 changed files with 29 additions and 26 deletions
|
@ -16,6 +16,13 @@
|
|||
* BL sizes
|
||||
******************************************************************************/
|
||||
|
||||
#define NRD_CSS_BL1_RW_SIZE UL(64 * 1024) /* 64KB */
|
||||
|
||||
#if TRUSTED_BOARD_BOOT
|
||||
# define NRD_CSS_BL2_SIZE UL(0x20000)
|
||||
#else
|
||||
# define NRD_CSS_BL2_SIZE UL(0x14000)
|
||||
#endif
|
||||
/*
|
||||
* Since BL31 NOBITS overlays BL2 and BL1-RW, PLAT_ARM_MAX_BL31_SIZE is
|
||||
* calculated using the current BL31 PROGBITS debug size plus the sizes of BL2
|
||||
|
|
|
@ -94,12 +94,6 @@
|
|||
* BL sizes
|
||||
******************************************************************************/
|
||||
|
||||
/*
|
||||
* PLAT_ARM_MAX_BL1_RW_SIZE is calculated using the current BL1 RW debug size
|
||||
* plus a little space for growth.
|
||||
*/
|
||||
#define PLAT_ARM_MAX_BL1_RW_SIZE UL(64 * 1024) /* 64 KB */
|
||||
|
||||
/*
|
||||
* PLAT_ARM_MAX_ROMLIB_RW_SIZE is define to use a full page
|
||||
*/
|
||||
|
@ -112,6 +106,8 @@
|
|||
#define PLAT_ARM_MAX_ROMLIB_RO_SIZE UL(0)
|
||||
#endif
|
||||
|
||||
#define PLAT_ARM_MAX_BL1_RW_SIZE NRD_CSS_BL1_RW_SIZE
|
||||
|
||||
/*
|
||||
* PLAT_ARM_MAX_BL2_SIZE is calculated using the current BL2 debug size plus a
|
||||
* little space for growth. Additional 8KiB space is added per chip in
|
||||
|
@ -119,17 +115,12 @@
|
|||
* peripheral access which lies in >4TB address space.
|
||||
*
|
||||
*/
|
||||
#if TRUSTED_BOARD_BOOT
|
||||
# define PLAT_ARM_MAX_BL2_SIZE (0x20000 + ((NRD_CHIP_COUNT - 1) * \
|
||||
0x2000))
|
||||
#else
|
||||
# define PLAT_ARM_MAX_BL2_SIZE (0x14000 + ((NRD_CHIP_COUNT - 1) * \
|
||||
0x2000))
|
||||
#endif
|
||||
#define PLAT_ARM_MAX_BL2_SIZE (NRD_CSS_BL2_SIZE + \
|
||||
((NRD_CHIP_COUNT - 1) * 0x2000))
|
||||
|
||||
#define PLAT_ARM_MAX_BL31_SIZE (NRD_CSS_BL31_SIZE + \
|
||||
PLAT_ARM_MAX_BL2_SIZE + \
|
||||
PLAT_ARM_MAX_BL1_RW_SIZE)
|
||||
PLAT_ARM_MAX_BL2_SIZE + \
|
||||
PLAT_ARM_MAX_BL1_RW_SIZE)
|
||||
|
||||
/*******************************************************************************
|
||||
* Stack sizes
|
||||
|
@ -305,9 +296,10 @@ ENABLE_FEAT_RAS && FFH_SUPPORT
|
|||
|
||||
#define PLAT_ARM_MEM_PROTEC_VA_FRAME UL(0xC0000000)
|
||||
|
||||
#define V2M_SYSREGS_BASE UL(0x0C010000)
|
||||
#define V2M_FLASH0_BASE UL(0x08000000)
|
||||
#define V2M_FLASH0_SIZE UL(0x04000000)
|
||||
#define V2M_SYSREGS_BASE NRD_ROS_SYSTEM_PERIPH_BASE + \
|
||||
UL(0x00010000)
|
||||
#define V2M_FLASH0_BASE NRD_ROS_SMC0_BASE
|
||||
#define V2M_FLASH0_SIZE NRD_ROS_SMC0_SIZE
|
||||
#define V2M_FLASH_BLOCK_SIZE UL(0x00040000) /* 256 KB */
|
||||
|
||||
#define PLAT_ARM_FLASH_IMAGE_BASE V2M_FLASH0_BASE
|
||||
|
@ -340,7 +332,8 @@ ENABLE_FEAT_RAS && FFH_SUPPORT
|
|||
#endif /* __ASSEMBLER__ */
|
||||
|
||||
/* Platform ID address */
|
||||
#define BOARD_CSS_PLAT_ID_REG_ADDR UL(0x0EFE00E0)
|
||||
#define BOARD_CSS_PLAT_ID_REG_ADDR NRD_ROS_PLATFORM_PERIPH_BASE + \
|
||||
UL(0x00FE00E0)
|
||||
|
||||
/*******************************************************************************
|
||||
* ROS peripheral config
|
||||
|
@ -360,13 +353,12 @@ ENABLE_FEAT_RAS && FFH_SUPPORT
|
|||
#define SOC_CSS_NIC400_BASE UL(0x0ED00000)
|
||||
|
||||
/* Non-volatile counters */
|
||||
#define SOC_TRUSTED_NVCTR_BASE UL(0x0EE70000)
|
||||
#define TFW_NVCTR_BASE (SOC_TRUSTED_NVCTR_BASE +\
|
||||
0x0000)
|
||||
#define TFW_NVCTR_SIZE U(4)
|
||||
#define NTFW_CTR_BASE (SOC_TRUSTED_NVCTR_BASE +\
|
||||
0x0004)
|
||||
#define NTFW_CTR_SIZE U(4)
|
||||
#define SOC_TRUSTED_NVCTR_BASE NRD_ROS_PLATFORM_PERIPH_BASE + \
|
||||
UL(0x00E70000)
|
||||
#define TFW_NVCTR_BASE (SOC_TRUSTED_NVCTR_BASE + 0x0000)
|
||||
#define TFW_NVCTR_SIZE U(4)
|
||||
#define NTFW_CTR_BASE (SOC_TRUSTED_NVCTR_BASE + 0x0004)
|
||||
#define NTFW_CTR_SIZE U(4)
|
||||
|
||||
/* Keys */
|
||||
#define SOC_KEYS_BASE UL(0x0EE80000)
|
||||
|
|
|
@ -34,4 +34,8 @@
|
|||
#define NRD_ROS_PLATFORM_PERIPH_BASE UL(0x0E000000)
|
||||
#define NRD_ROS_PLATFORM_PERIPH_SIZE UL(0x02000000)
|
||||
|
||||
/* SMC0 */
|
||||
#define NRD_ROS_SMC0_BASE UL(0x08000000)
|
||||
#define NRD_ROS_SMC0_SIZE UL(0x04000000)
|
||||
|
||||
#endif /* NRD_ROS_DEF2_H */
|
||||
|
|
Loading…
Add table
Reference in a new issue