hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/include/soc/mediatek/smi.h
....@@ -1,15 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (c) 2015-2016 MediaTek Inc.
34 * Author: Yong Wu <yong.wu@mediatek.com>
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 as
7
- * published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
135 */
146 #ifndef MTK_IOMMU_SMI_H
157 #define MTK_IOMMU_SMI_H
....@@ -17,20 +9,14 @@
179 #include <linux/bitops.h>
1810 #include <linux/device.h>
1911
20
-#ifdef CONFIG_MTK_SMI
21
-
22
-#define MTK_LARB_NR_MAX 16
12
+#if IS_ENABLED(CONFIG_MTK_SMI)
2313
2414 #define MTK_SMI_MMU_EN(port) BIT(port)
2515
2616 struct mtk_smi_larb_iommu {
2717 struct device *dev;
2818 unsigned int mmu;
29
-};
30
-
31
-struct mtk_smi_iommu {
32
- unsigned int larb_nr;
33
- struct mtk_smi_larb_iommu larb_imu[MTK_LARB_NR_MAX];
19
+ unsigned char bank[32];
3420 };
3521
3622 /*