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