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> |
Sughosh Ganu | 18f513d | 2018-05-16 17:22:35 +0530 | [diff] [blame] | 10 | #include <sgi_ras.h> |
Chandni Cherukuri | 61f3a7c | 2018-10-11 14:08:08 +0530 | [diff] [blame] | 11 | #include "../../css/drivers/scmi/scmi.h" |
| 12 | #include "../../css/drivers/mhu/css_mhu_doorbell.h" |
| 13 | |
| 14 | static scmi_channel_plat_info_t sgi575_scmi_plat_info = { |
| 15 | .scmi_mbx_mem = CSS_SCMI_PAYLOAD_BASE, |
| 16 | .db_reg_addr = PLAT_CSS_MHU_BASE + CSS_SCMI_MHU_DB_REG_OFF, |
| 17 | .db_preserve_mask = 0xfffffffe, |
| 18 | .db_modify_mask = 0x1, |
| 19 | .ring_doorbell = &mhu_ring_doorbell, |
| 20 | }; |
| 21 | |
| 22 | scmi_channel_plat_info_t *plat_css_get_scmi_info() |
| 23 | { |
| 24 | return &sgi575_scmi_plat_info; |
| 25 | } |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 26 | |
| 27 | void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1, |
| 28 | u_register_t arg2, u_register_t arg3) |
| 29 | { |
Nariman Poushin | 0ece80f | 2018-02-26 06:52:04 +0000 | [diff] [blame] | 30 | arm_bl31_early_platform_setup((void *)arg0, arg1, arg2, (void *)arg3); |
| 31 | } |
Sughosh Ganu | 18f513d | 2018-05-16 17:22:35 +0530 | [diff] [blame] | 32 | |
| 33 | void bl31_platform_setup(void) |
| 34 | { |
| 35 | arm_bl31_platform_setup(); |
| 36 | |
| 37 | #if RAS_EXTENSION |
| 38 | sgi_ras_intr_handler_setup(); |
| 39 | #endif |
| 40 | } |