blob: a59e0c78f154eba987cb5b6cd8d09cf5890ea910 [file] [log] [blame]
Chengci Xudb1e75b2022-07-20 16:20:15 +08001/*
2 * Copyright (c) 2022, MediaTek Inc. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef IOMMU_PLAT_H
8#define IOMMU_PLAT_H
9
10#include <mtk_iommu_priv.h>
11
12/* mm iommu */
13#define SMI_LARB_NUM (26)
14extern struct mtk_smi_larb_config *g_larb_cfg;
15
16/* infra iommu */
17#define MMU_DEV_NUM (1)
18extern struct mtk_ifr_mst_config *g_ifr_mst_cfg;
19extern uint32_t *g_ifr_mst_cfg_base;
20extern uint32_t *g_ifr_mst_cfg_offs;
21
22extern void mtk_infra_iommu_enable_protect(void);
23
24#endif /* IOMMU_PLAT_H */