summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/iommu-omap.h
diff options
context:
space:
mode:
authorSuman Anna <s-anna@ti.com>2019-08-07 11:26:46 +0300
committerJoerg Roedel <jroedel@suse.de>2019-08-09 17:37:09 +0200
commit74c116df66d25a9fb48d44ce545a505edc5fbbba (patch)
tree50d594bc308fdc6843aa98767235d1c9ea16abef /include/linux/platform_data/iommu-omap.h
parent3846a3b9511c5166082a93536d919a9c42abcd91 (diff)
iommu/omap: add pdata ops for omap_device_enable/idle
Add two new platform data ops to allow the OMAP iommu driver to be able to invoke the omap_device_enable and omap_device_idle from within the driver. These are being added to streamline the sequence between managing the hard reset lines and the clocks during the suspend path, as the default device pm_domain callback sequences in omap_device layer are not conducive for the OMAP IOMMU driver. This could have been done by expanding the existing pdata ops for reset management (like in the OMAP remoteproc driver), but this was chosen to avoid adding additional code in the separate file in the mach-omap2 layer. Signed-off-by: Suman Anna <s-anna@ti.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux/platform_data/iommu-omap.h')
-rw-r--r--include/linux/platform_data/iommu-omap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/platform_data/iommu-omap.h b/include/linux/platform_data/iommu-omap.h
index 1ed60265a20e..8474a0208b34 100644
--- a/include/linux/platform_data/iommu-omap.h
+++ b/include/linux/platform_data/iommu-omap.h
@@ -13,6 +13,8 @@ struct iommu_platform_data {
const char *reset_name;
int (*assert_reset)(struct platform_device *pdev, const char *name);
int (*deassert_reset)(struct platform_device *pdev, const char *name);
+ int (*device_enable)(struct platform_device *pdev);
+ int (*device_idle)(struct platform_device *pdev);
int (*set_pwrdm_constraint)(struct platform_device *pdev, bool request,
u8 *pwrst);
};