blob: 09f493eddf850c05e2778e8ddc7ec7c1888bf120 [file] [log] [blame]
Nariman Poushin0ece80f2018-02-26 06:52:04 +00001/*
2 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <bl_common.h>
8#include <debug.h>
9#include <plat_arm.h>
10#include <sgi_plat_config.h>
Sughosh Ganu18f513d2018-05-16 17:22:35 +053011#include <sgi_ras.h>
Nariman Poushin0ece80f2018-02-26 06:52:04 +000012
13void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
14 u_register_t arg2, u_register_t arg3)
15{
Nariman Poushin0ece80f2018-02-26 06:52:04 +000016 /* Initialize the platform configuration structure */
17 plat_config_init();
18
Nariman Poushin0ece80f2018-02-26 06:52:04 +000019 arm_bl31_early_platform_setup((void *)arg0, arg1, arg2, (void *)arg3);
20}
Sughosh Ganu18f513d2018-05-16 17:22:35 +053021
22void bl31_platform_setup(void)
23{
24 arm_bl31_platform_setup();
25
26#if RAS_EXTENSION
27 sgi_ras_intr_handler_setup();
28#endif
29}