diff options
authorSuman Anna2015-04-27 17:26:21 -0500
committerSuman Anna2019-03-03 17:39:53 -0600
commit87ef55eb92afebb277a15a6911e6ce0aad2138e5 (patch)
parentd2fb19c469aa8799ba32b2aabb154703a0e69ed1 (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>
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 1a0aa46a5ad6..6669dc9394da 100644
--- a/include/linux/platform_data/iommu-omap.h
+++ b/include/linux/platform_data/iommu-omap.h
@@ -16,6 +16,8 @@ struct iommu_platform_data {
16 const char *reset_name; 16 const char *reset_name;
17 int (*assert_reset)(struct platform_device *pdev, const char *name); 17 int (*assert_reset)(struct platform_device *pdev, const char *name);
18 int (*deassert_reset)(struct platform_device *pdev, const char *name); 18 int (*deassert_reset)(struct platform_device *pdev, const char *name);
19 int (*device_enable)(struct platform_device *pdev);
20 int (*device_idle)(struct platform_device *pdev);
19 int (*set_pwrdm_constraint)(struct platform_device *pdev, bool request, 21 int (*set_pwrdm_constraint)(struct platform_device *pdev, bool request,
20 u8 *pwrst); 22 u8 *pwrst);
21}; 23};