mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-04 09:58:40 +00:00

Add APU SMMU hardware semaphore operations to make APU SMMU able to sync the power status. Change-Id: I1926cab990fba54a2ea694ac6d9e87135dfb19cf Signed-off-by: Karl Li <karl.li@mediatek.com>
18 lines
476 B
C
18 lines
476 B
C
/*
|
|
* Copyright (c) 2024, MediaTek Inc. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef APUSYS_RV_PUBLIC_H
|
|
#define APUSYS_RV_PUBLIC_H
|
|
|
|
#ifdef CONFIG_MTK_APUSYS_RV_IOMMU_HW_SEM_SUPPORT
|
|
int apusys_rv_iommu_hw_sem_trylock(void);
|
|
int apusys_rv_iommu_hw_sem_unlock(void);
|
|
#else
|
|
#define apusys_rv_iommu_hw_sem_trylock() 0
|
|
#define apusys_rv_iommu_hw_sem_unlock() 0
|
|
#endif /* CONFIG_MTK_APUSYS_RV_IOMMU_HW_SEM_SUPPORT */
|
|
|
|
#endif /* APUSYS_RV_PUBLIC_H */
|