Deepak Pandey | 9cbacf6 | 2018-08-08 10:32:51 +0530 | [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 "../../css/drivers/scmi/scmi.h" |
| 8 | #include "../../css/drivers/mhu/css_mhu_doorbell.h" |
Chandni Cherukuri | e4bf6a0 | 2018-11-14 13:43:59 +0530 | [diff] [blame] | 9 | #include <plat_arm.h> |
Deepak Pandey | 9cbacf6 | 2018-08-08 10:32:51 +0530 | [diff] [blame] | 10 | #include <platform_def.h> |
| 11 | |
| 12 | static scmi_channel_plat_info_t n1sdp_scmi_plat_info = { |
| 13 | .scmi_mbx_mem = N1SDP_SCMI_PAYLOAD_BASE, |
| 14 | .db_reg_addr = PLAT_CSS_MHU_BASE + CSS_SCMI_MHU_DB_REG_OFF, |
| 15 | .db_preserve_mask = 0xfffffffe, |
| 16 | .db_modify_mask = 0x1, |
| 17 | .ring_doorbell = &mhu_ring_doorbell, |
| 18 | }; |
| 19 | |
| 20 | scmi_channel_plat_info_t *plat_css_get_scmi_info() |
| 21 | { |
| 22 | return &n1sdp_scmi_plat_info; |
| 23 | } |
Chandni Cherukuri | e4bf6a0 | 2018-11-14 13:43:59 +0530 | [diff] [blame] | 24 | |
| 25 | const plat_psci_ops_t *plat_arm_psci_override_pm_ops(plat_psci_ops_t *ops) |
| 26 | { |
| 27 | return css_scmi_override_pm_ops(ops); |
| 28 | } |