sgi575_plat.c 612 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
3
4
5
6
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

7
#include <plat/common/platform.h>
8
#include <sgi_plat.h>
9
10
#include <sgi_variant.h>

11
12
13
14
15
16
17
18
19
20
unsigned int plat_arm_sgi_get_platform_id(void)
{
	return mmio_read_32(SSC_VERSION) & SSC_VERSION_PART_NUM_MASK;
}

unsigned int plat_arm_sgi_get_config_id(void)
{
	return (mmio_read_32(SSC_VERSION) >> SSC_VERSION_CONFIG_SHIFT)
			& SSC_VERSION_CONFIG_MASK;
}
21

22
23
24
25
26
unsigned int plat_arm_sgi_get_multi_chip_mode(void)
{
	return 0;
}

27
28
29
30
void bl31_platform_setup(void)
{
	sgi_bl31_common_platform_setup();
}