blob: dc294e6a8d9e4ce450f74a6af70622b989057522 [file] [log] [blame]
Chandni Cherukuri3aa09f72018-11-28 11:31:51 +05301/*
Vijayenthiran Subramaniam2b4ad8d2019-09-23 19:32:32 +05302 * Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
Chandni Cherukuri3aa09f72018-11-28 11:31:51 +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>
Ambroise Vincentb237bca2019-02-13 15:58:00 +00009#include <sgi_variant.h>
10
Chandni Cherukuri3aa09f72018-11-28 11:31:51 +053011unsigned int plat_arm_sgi_get_platform_id(void)
12{
13 return mmio_read_32(SSC_VERSION) & SSC_VERSION_PART_NUM_MASK;
14}
15
16unsigned int plat_arm_sgi_get_config_id(void)
17{
18 return (mmio_read_32(SSC_VERSION) >> SSC_VERSION_CONFIG_SHIFT)
19 & SSC_VERSION_CONFIG_MASK;
20}
Vijayenthiran Subramaniam2b4ad8d2019-09-23 19:32:32 +053021
Vijayenthiran Subramaniam8af18432019-10-22 15:46:14 +053022unsigned int plat_arm_sgi_get_multi_chip_mode(void)
23{
24 return 0;
25}
26
Vijayenthiran Subramaniam2b4ad8d2019-09-23 19:32:32 +053027void bl31_platform_setup(void)
28{
29 sgi_bl31_common_platform_setup();
30}