blob: a1b8d621d63ba27fafd44f2ac9aa61a261a516cd [file] [log] [blame]
Chandni Cherukuri626a52d2018-08-16 13:43:23 +05301/*
2 * Copyright (c) 2018, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00007#include <plat/common/platform.h>
Chandni Cherukuri626a52d2018-08-16 13:43:23 +05308
9unsigned int plat_arm_sgi_get_platform_id(void)
10{
11 return mmio_read_32(SID_REG_BASE + SID_SYSTEM_ID_OFFSET)
12 & SID_SYSTEM_ID_PART_NUM_MASK;
13}
14
15unsigned int plat_arm_sgi_get_config_id(void)
16{
17 return mmio_read_32(SID_REG_BASE + SID_SYSTEM_CFG_OFFSET);
18}