Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 1 | /* |
Vijayenthiran Subramaniam | 2b4ad8d | 2019-09-23 19:32:32 +0530 | [diff] [blame] | 2 | * Copyright (c) 2018-2020, Arm Limited. All rights reserved. |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 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> |
Vijayenthiran Subramaniam | 2b4ad8d | 2019-09-23 19:32:32 +0530 | [diff] [blame] | 8 | #include <sgi_plat.h> |
Chandni Cherukuri | 626a52d | 2018-08-16 13:43:23 +0530 | [diff] [blame] | 9 | |
| 10 | unsigned int plat_arm_sgi_get_platform_id(void) |
| 11 | { |
| 12 | return mmio_read_32(SID_REG_BASE + SID_SYSTEM_ID_OFFSET) |
| 13 | & SID_SYSTEM_ID_PART_NUM_MASK; |
| 14 | } |
| 15 | |
| 16 | unsigned int plat_arm_sgi_get_config_id(void) |
| 17 | { |
| 18 | return mmio_read_32(SID_REG_BASE + SID_SYSTEM_CFG_OFFSET); |
| 19 | } |
Vijayenthiran Subramaniam | 2b4ad8d | 2019-09-23 19:32:32 +0530 | [diff] [blame] | 20 | |
Vijayenthiran Subramaniam | 8af1843 | 2019-10-22 15:46:14 +0530 | [diff] [blame] | 21 | unsigned int plat_arm_sgi_get_multi_chip_mode(void) |
| 22 | { |
| 23 | return 0; |
| 24 | } |
| 25 | |
Vijayenthiran Subramaniam | 2b4ad8d | 2019-09-23 19:32:32 +0530 | [diff] [blame] | 26 | void bl31_platform_setup(void) |
| 27 | { |
| 28 | sgi_bl31_common_platform_setup(); |
| 29 | } |