Browse Source

feat(board/rdedmunds): add support for rdedmunds variant

Add initial support for RD-Edmunds platform. This platform is considered
as a variant of RD-N2 platform with only major change being the CPU
which is Demeter instead of Neoverse-N2.

Signed-off-by: Tony K Nadackal <tony.nadackal@arm.com>
Change-Id: I939d9eac652fa9e76ad002ee5e6107aa79baa013
pull/1985/head
Tony K Nadackal 3 years ago
parent
commit
ef515f0d34
  1. 3
      plat/arm/board/rdn2/platform.mk
  2. 4
      plat/arm/css/sgi/include/sgi_variant.h
  3. 1
      plat/arm/css/sgi/sgi_bl31_setup.c

3
plat/arm/board/rdn2/platform.mk

@ -30,7 +30,8 @@ RDN2_BASE = plat/arm/board/rdn2
PLAT_INCLUDES += -I${RDN2_BASE}/include/ PLAT_INCLUDES += -I${RDN2_BASE}/include/
SGI_CPU_SOURCES := lib/cpus/aarch64/neoverse_n2.S SGI_CPU_SOURCES := lib/cpus/aarch64/neoverse_n2.S \
lib/cpus/aarch64/neoverse_demeter.S
PLAT_BL_COMMON_SOURCES += ${CSS_ENT_BASE}/sgi_plat_v2.c PLAT_BL_COMMON_SOURCES += ${CSS_ENT_BASE}/sgi_plat_v2.c

4
plat/arm/css/sgi/include/sgi_variant.h

@ -23,6 +23,10 @@
/* SID Version values for RD-N2 variants */ /* SID Version values for RD-N2 variants */
#define RD_N2_CFG1_SID_VER_PART_NUM 0x07B6 #define RD_N2_CFG1_SID_VER_PART_NUM 0x07B6
/* SID Version values for RD-Edmunds */
#define RD_EDMUNDS_SID_VER_PART_NUM 0x07F2
#define RD_EDMUNDS_CONFIG_ID 0x1
/* Structure containing SGI platform variant information */ /* Structure containing SGI platform variant information */
typedef struct sgi_platform_info { typedef struct sgi_platform_info {
unsigned int platform_id; /* Part Number of the platform */ unsigned int platform_id; /* Part Number of the platform */

1
plat/arm/css/sgi/sgi_bl31_setup.c

@ -76,6 +76,7 @@ scmi_channel_plat_info_t *plat_css_get_scmi_info(int channel_id)
if (sgi_plat_info.platform_id == RD_N1E1_EDGE_SID_VER_PART_NUM || if (sgi_plat_info.platform_id == RD_N1E1_EDGE_SID_VER_PART_NUM ||
sgi_plat_info.platform_id == RD_V1_SID_VER_PART_NUM || sgi_plat_info.platform_id == RD_V1_SID_VER_PART_NUM ||
sgi_plat_info.platform_id == RD_N2_SID_VER_PART_NUM || sgi_plat_info.platform_id == RD_N2_SID_VER_PART_NUM ||
sgi_plat_info.platform_id == RD_EDMUNDS_SID_VER_PART_NUM ||
sgi_plat_info.platform_id == RD_N2_CFG1_SID_VER_PART_NUM) { sgi_plat_info.platform_id == RD_N2_CFG1_SID_VER_PART_NUM) {
if (channel_id >= ARRAY_SIZE(plat_rd_scmi_info)) if (channel_id >= ARRAY_SIZE(plat_rd_scmi_info))
panic(); panic();

Loading…
Cancel
Save