summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuman Anna <s-anna@ti.com>2019-08-26 20:14:51 -0400
committerTony Lindgren <tony@atomide.com>2019-10-18 11:40:20 -0400
commit19feeee5c5af114f3cb8ad2772680b7a1d16f043 (patch)
tree8c5c5427fb024d155ff6bcc89aeb3ce4b73dfa51
parent17a9e5bbbfe5a5a6356e47cdc1c1656e1e5e1f62 (diff)
ARM: OMAP2+: Plug in device_enable/idle ops for IOMMUs
The OMAP IOMMU driver requires the device_enable/idle platform data ops on all the IOMMU devices to be able to enable and disable the clocks after commit db8918f61d51 ("iommu/omap: streamline enable/disable through runtime pm callbacks"). Plug in these pdata ops for all the existing IOMMUs through pdata quirks to maintain functionality. Signed-off-by: Suman Anna <s-anna@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/mach-omap2/pdata-quirks.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c
index d942a3357090..ac5da6ad2017 100644
--- a/arch/arm/mach-omap2/pdata-quirks.c
+++ b/arch/arm/mach-omap2/pdata-quirks.c
@@ -89,6 +89,8 @@ static struct iommu_platform_data omap3_iommu_pdata = {
89 .reset_name = "mmu", 89 .reset_name = "mmu",
90 .assert_reset = omap_device_assert_hardreset, 90 .assert_reset = omap_device_assert_hardreset,
91 .deassert_reset = omap_device_deassert_hardreset, 91 .deassert_reset = omap_device_deassert_hardreset,
92 .device_enable = omap_device_enable,
93 .device_idle = omap_device_idle,
92}; 94};
93 95
94static int omap3_sbc_t3730_twl_callback(struct device *dev, 96static int omap3_sbc_t3730_twl_callback(struct device *dev,
@@ -424,6 +426,8 @@ static struct iommu_platform_data omap4_iommu_pdata = {
424 .reset_name = "mmu_cache", 426 .reset_name = "mmu_cache",
425 .assert_reset = omap_device_assert_hardreset, 427 .assert_reset = omap_device_assert_hardreset,
426 .deassert_reset = omap_device_deassert_hardreset, 428 .deassert_reset = omap_device_deassert_hardreset,
429 .device_enable = omap_device_enable,
430 .device_idle = omap_device_idle,
427}; 431};
428#endif 432#endif
429 433