mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-15 17:14:21 +00:00

Multi-chip platforms have two or more identical chips connected using a high speed coherent link. In order to identify such platforms, add chip_id and multi_chip_mode information in the platform variant info structure. The values of these two new elements is populated during boot. Change-Id: Ie6e89cb33b3f0f408814f6239cd06647053e23ed Signed-off-by: Vijayenthiran Subramaniam <vijayenthiran.subramaniam@arm.com>
29 lines
566 B
C
29 lines
566 B
C
/*
|
|
* Copyright (c) 2018-2020, Arm Limited. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <plat/common/platform.h>
|
|
#include <sgi_plat.h>
|
|
|
|
unsigned int plat_arm_sgi_get_platform_id(void)
|
|
{
|
|
return mmio_read_32(SID_REG_BASE + SID_SYSTEM_ID_OFFSET)
|
|
& SID_SYSTEM_ID_PART_NUM_MASK;
|
|
}
|
|
|
|
unsigned int plat_arm_sgi_get_config_id(void)
|
|
{
|
|
return mmio_read_32(SID_REG_BASE + SID_SYSTEM_CFG_OFFSET);
|
|
}
|
|
|
|
unsigned int plat_arm_sgi_get_multi_chip_mode(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
void bl31_platform_setup(void)
|
|
{
|
|
sgi_bl31_common_platform_setup();
|
|
}
|