Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 1 | /* |
| 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 Ganu | 18f513d | 2018-05-16 17:22:35 +0530 | [diff] [blame] | 11 | #include <sgi_ras.h> |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 12 | |
| 13 | void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1, |
| 14 | u_register_t arg2, u_register_t arg3) |
| 15 | { |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 16 | /* Initialize the platform configuration structure */ |
| 17 | plat_config_init(); |
| 18 | |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 19 | arm_bl31_early_platform_setup((void *)arg0, arg1, arg2, (void *)arg3); |
| 20 | } |
Sughosh Ganu | 18f513d | 2018-05-16 17:22:35 +0530 | [diff] [blame] | 21 | |
| 22 | void bl31_platform_setup(void) |
| 23 | { |
| 24 | arm_bl31_platform_setup(); |
| 25 | |
| 26 | #if RAS_EXTENSION |
| 27 | sgi_ras_intr_handler_setup(); |
| 28 | #endif |
| 29 | } |