arm-trusted-firmware/plat/mediatek/include/drivers/apusys_rv_public.h
Karl Li 2d134d28f5 feat(mt8196): add APU SMMU hardware semaphore operations
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>
2024-12-19 09:56:04 +08:00

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 */