blob: 3b7e5ee4e4cfbf72d837a2a420b3a946d5f949ce [file] [log] [blame]
Chandni Cherukuri3aa09f72018-11-28 11:31:51 +05301/*
2 * Copyright (c) 2018, ARM Limited and Contributors. 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 Cherukuri3aa09f72018-11-28 11:31:51 +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}