plat/arm/sgi: Use platform specific functions to get platform ids
authorChandni Cherukuri <chandni.cherukuri@arm.com>
Wed, 28 Nov 2018 06:01:51 +0000 (11:31 +0530)
committerChandni Cherukuri <chandni.cherukuri@arm.com>
Mon, 3 Dec 2018 13:05:50 +0000 (18:35 +0530)
commit699223a282e29e9b37ee3096f7c6a832a20db350
tree71d98ea7de3a1cd905200b83f12783b6cb524a50
parent500db01352337c56c200b4e3e1aa4b245fe53277
plat/arm/sgi: Use platform specific functions to get platform ids

Add two new functions 'plat_arm_sgi_get_platform_id' and
'plat_arm_sgi_get_config_id' which will be implemented by all the
SGI platforms. These functions can be used to determine the part
number and configuration id of the SGI platforms.

In BL2, these functions are used to populate the 'system-id' node.
In BL31, these functions are used to populate the 'sgi_plat_info_t'
structure with the part number and configuration id of the platform.

Change-Id: I3bacda933527724a3b4074ad4ed5b53a81ea4689
Signed-off-by: Chandni Cherukuri <chandni.cherukuri@arm.com>
plat/arm/board/sgi575/platform.mk
plat/arm/board/sgi575/sgi575_plat.c [new file with mode: 0644]
plat/arm/board/sgiclarka/platform.mk
plat/arm/board/sgiclarka/sgiclarka_plat.c [new file with mode: 0644]
plat/arm/css/sgi/include/sgi_variant.h
plat/arm/css/sgi/sgi_bl31_setup.c
plat/arm/css/sgi/sgi_image_load.c