rde1edge_plat.c 498 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2018-2020, Arm Limited. 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
11
12
13
14
15
16
17
18
19

unsigned int plat_arm_sgi_get_platform_id(void)
{
	return mmio_read_32(SID_REG_BASE + SID_SYSTEM_ID_OFFSET)
				& SID_SYSTEM_ID_PART_NUM_MASK;
}

unsigned int plat_arm_sgi_get_config_id(void)
{
	return mmio_read_32(SID_REG_BASE + SID_SYSTEM_CFG_OFFSET);
}
20
21
22
23
24

void bl31_platform_setup(void)
{
	sgi_bl31_common_platform_setup();
}