mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-16 01:17:01 +02:00
Add SiP service for multimedia & infra master to enable/disable MM & INFRA IOMMU in secure world TEST=build pass BUG=b:236339614 Signed-off-by: Chengci Xu <chengci.xu@mediatek.corp-partner.google.com> Change-Id: I4eb1fda6044cf2cb6c22c005cb2fa550906b71e9
25 lines
514 B
C
25 lines
514 B
C
/*
|
|
* Copyright (c) 2022, MediaTek Inc. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef IOMMU_PLAT_H
|
|
#define IOMMU_PLAT_H
|
|
|
|
#include <mtk_iommu_priv.h>
|
|
|
|
/* mm iommu */
|
|
#define SMI_LARB_NUM (26)
|
|
extern struct mtk_smi_larb_config *g_larb_cfg;
|
|
|
|
/* infra iommu */
|
|
#define MMU_DEV_NUM (1)
|
|
extern struct mtk_ifr_mst_config *g_ifr_mst_cfg;
|
|
extern uint32_t *g_ifr_mst_cfg_base;
|
|
extern uint32_t *g_ifr_mst_cfg_offs;
|
|
|
|
extern void mtk_infra_iommu_enable_protect(void);
|
|
|
|
#endif /* IOMMU_PLAT_H */
|