summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuman Anna <s-anna@ti.com>2019-08-26 20:14:52 -0400
committerTony Lindgren <tony@atomide.com>2019-10-18 11:40:27 -0400
commit0af3e1a491dde06dfcb0b063d5b543dfebded0f9 (patch)
tree02dd254cb93ba8c29ea563120d99418eb9be75bf
parent19feeee5c5af114f3cb8ad2772680b7a1d16f043 (diff)
ARM: OMAP2+: Add pdata for OMAP3 ISP IOMMU
The OMAP3 ISP IOMMU does not have any reset lines, so it didn't need any pdata previously. The OMAP IOMMU driver now requires the platform data ops for device_enable/idle on all the IOMMU devices after commit db8918f61d51 ("iommu/omap: streamline enable/disable through runtime pm callbacks") to enable/disable the clocks properly and maintain the reference count and the omap_hwmod state machine. So, add these callbacks through iommu pdata quirks for the OMAP3 ISP IOMMU. 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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c
index ac5da6ad2017..2efd18e8824c 100644
--- a/arch/arm/mach-omap2/pdata-quirks.c
+++ b/arch/arm/mach-omap2/pdata-quirks.c
@@ -93,6 +93,11 @@ static struct iommu_platform_data omap3_iommu_pdata = {
93 .device_idle = omap_device_idle, 93 .device_idle = omap_device_idle,
94}; 94};
95 95
96static struct iommu_platform_data omap3_iommu_isp_pdata = {
97 .device_enable = omap_device_enable,
98 .device_idle = omap_device_idle,
99};
100
96static int omap3_sbc_t3730_twl_callback(struct device *dev, 101static int omap3_sbc_t3730_twl_callback(struct device *dev,
97 unsigned gpio, 102 unsigned gpio,
98 unsigned ngpio) 103 unsigned ngpio)
@@ -621,6 +626,8 @@ static struct of_dev_auxdata omap_auxdata_lookup[] = {
621#ifdef CONFIG_ARCH_OMAP3 626#ifdef CONFIG_ARCH_OMAP3
622 OF_DEV_AUXDATA("ti,omap2-iommu", 0x5d000000, "5d000000.mmu", 627 OF_DEV_AUXDATA("ti,omap2-iommu", 0x5d000000, "5d000000.mmu",
623 &omap3_iommu_pdata), 628 &omap3_iommu_pdata),
629 OF_DEV_AUXDATA("ti,omap2-iommu", 0x480bd400, "480bd400.mmu",
630 &omap3_iommu_isp_pdata),
624 OF_DEV_AUXDATA("ti,omap3-smartreflex-core", 0x480cb000, 631 OF_DEV_AUXDATA("ti,omap3-smartreflex-core", 0x480cb000,
625 "480cb000.smartreflex", &omap_sr_pdata[OMAP_SR_CORE]), 632 "480cb000.smartreflex", &omap_sr_pdata[OMAP_SR_CORE]),
626 OF_DEV_AUXDATA("ti,omap3-smartreflex-mpu-iva", 0x480c9000, 633 OF_DEV_AUXDATA("ti,omap3-smartreflex-mpu-iva", 0x480c9000,