mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 09:22:27 +00:00
After adding device_link between the iommu consumer and smi-larb, the pm_runtime_get(_sync) of smi-larb and smi-common will be called automatically. we can get rid of mtk_smi_larb_get/put. Signed-off-by: Yong Wu <[email protected]> Reviewed-by: Evan Green <[email protected]> Acked-by: Krzysztof Kozlowski <[email protected]> Acked-by: Matthias Brugger <[email protected]> Reviewed-by: Dafna Hirschfeld <[email protected]> Tested-by: Frank Wunderlich <[email protected]> # BPI-R2/MT7623 Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
25 lines
423 B
C
25 lines
423 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2015-2016 MediaTek Inc.
|
|
* Author: Yong Wu <[email protected]>
|
|
*/
|
|
#ifndef MTK_IOMMU_SMI_H
|
|
#define MTK_IOMMU_SMI_H
|
|
|
|
#include <linux/bitops.h>
|
|
#include <linux/device.h>
|
|
|
|
#if IS_ENABLED(CONFIG_MTK_SMI)
|
|
|
|
#define MTK_SMI_MMU_EN(port) BIT(port)
|
|
|
|
struct mtk_smi_larb_iommu {
|
|
struct device *dev;
|
|
unsigned int mmu;
|
|
unsigned char bank[32];
|
|
};
|
|
|
|
#endif
|
|
|
|
#endif
|