Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 7 | #include <plat/common/platform.h> |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 8 | |
| 9 | unsigned 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 | |
| 15 | unsigned int plat_arm_sgi_get_config_id(void) |
| 16 | { |
| 17 | return mmio_read_32(SID_REG_BASE + SID_SYSTEM_CFG_OFFSET); |
| 18 | } |