mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-15 00:54:22 +00:00

Corrects typos in core code, documentation files, drivers, Arm platforms and services. None of the corrections affect code; changes are limited to comments and other documentation. Change-Id: I5c1027b06ef149864f315ccc0ea473e2a16bfd1d Signed-off-by: Paul Beesley <paul.beesley@arm.com>
39 lines
876 B
C
39 lines
876 B
C
/*
|
|
* Copyright (c) 2014-2019, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <platform_def.h>
|
|
|
|
#include <arch_helpers.h>
|
|
|
|
#include "css_mhu_doorbell.h"
|
|
#include "../scmi/scmi.h"
|
|
|
|
void mhu_ring_doorbell(struct scmi_channel_plat_info *plat_info)
|
|
{
|
|
MHU_RING_DOORBELL(plat_info->db_reg_addr,
|
|
plat_info->db_modify_mask,
|
|
plat_info->db_preserve_mask);
|
|
return;
|
|
}
|
|
|
|
void mhuv2_ring_doorbell(struct scmi_channel_plat_info *plat_info)
|
|
{
|
|
/* wake receiver */
|
|
MHU_V2_ACCESS_REQUEST(MHUV2_BASE_ADDR);
|
|
|
|
/* wait for receiver to acknowledge its ready */
|
|
while (MHU_V2_IS_ACCESS_READY(MHUV2_BASE_ADDR) == 0)
|
|
;
|
|
|
|
MHU_RING_DOORBELL(plat_info->db_reg_addr,
|
|
plat_info->db_modify_mask,
|
|
plat_info->db_preserve_mask);
|
|
|
|
/* clear the access request for the receiver */
|
|
MHU_V2_CLEAR_REQUEST(MHUV2_BASE_ADDR);
|
|
|
|
return;
|
|
}
|