blob: a16343cf0b653319a95eb5ed85409e89ca420212 [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>
Sughosh Ganu18f513d2018-05-16 17:22:35 +053010#include <sgi_ras.h>
Chandni Cherukuri61f3a7c2018-10-11 14:08:08 +053011#include "../../css/drivers/scmi/scmi.h"
12#include "../../css/drivers/mhu/css_mhu_doorbell.h"
13
14static 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
22scmi_channel_plat_info_t *plat_css_get_scmi_info()
23{
24 return &sgi575_scmi_plat_info;
25}
Nariman Poushin0ece80f2018-02-26 06:52:04 +000026
27void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
28 u_register_t arg2, u_register_t arg3)
29{
Nariman Poushin0ece80f2018-02-26 06:52:04 +000030 arm_bl31_early_platform_setup((void *)arg0, arg1, arg2, (void *)arg3);
31}
Sughosh Ganu18f513d2018-05-16 17:22:35 +053032
33void bl31_platform_setup(void)
34{
35 arm_bl31_platform_setup();
36
37#if RAS_EXTENSION
38 sgi_ras_intr_handler_setup();
39#endif
40}