/* SPDX-License-Identifier: GPL-2.0-only */1/*2* Copyright (c) 2015-2016 MediaTek Inc.3* Author: Yong Wu <[email protected]>4*/5#ifndef MTK_IOMMU_SMI_H6#define MTK_IOMMU_SMI_H78#include <linux/bitops.h>9#include <linux/device.h>1011#if IS_ENABLED(CONFIG_MTK_SMI)1213enum iommu_atf_cmd {14IOMMU_ATF_CMD_CONFIG_SMI_LARB, /* For mm master to en/disable iommu */15IOMMU_ATF_CMD_CONFIG_INFRA_IOMMU, /* For infra master to enable iommu */16IOMMU_ATF_CMD_MAX,17};1819#define MTK_SMI_MMU_EN(port) BIT(port)2021struct mtk_smi_larb_iommu {22struct device *dev;23unsigned int mmu;24unsigned char bank[32];25};2627#endif2829#endif303132