blob: 44d818aecb95dfe09e6e5344415c1aed598b6556 [file] [log] [blame]
Chandni Cherukuri626a52d2018-08-16 13:43:23 +05301/*
Vijayenthiran Subramaniam2b4ad8d2019-09-23 19:32:32 +05302 * Copyright (c) 2018-2020, Arm Limited. All rights reserved.
Chandni Cherukuri626a52d2018-08-16 13:43:23 +05303 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00007#include <plat/common/platform.h>
Vijayenthiran Subramaniam2b4ad8d2019-09-23 19:32:32 +05308#include <sgi_plat.h>
Chandni Cherukuri626a52d2018-08-16 13:43:23 +05309
10unsigned 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
16unsigned int plat_arm_sgi_get_config_id(void)
17{
18 return mmio_read_32(SID_REG_BASE + SID_SYSTEM_CFG_OFFSET);
19}
Vijayenthiran Subramaniam2b4ad8d2019-09-23 19:32:32 +053020
Vijayenthiran Subramaniam8af18432019-10-22 15:46:14 +053021unsigned int plat_arm_sgi_get_multi_chip_mode(void)
22{
23 return 0;
24}
25
Vijayenthiran Subramaniam2b4ad8d2019-09-23 19:32:32 +053026void bl31_platform_setup(void)
27{
28 sgi_bl31_common_platform_setup();
29}