aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuman Anna2015-05-14 23:40:26 -0500
committerSuman Anna2019-03-03 17:39:53 -0600
commit82b6677359074f75edb5d1e1e6902b6dc2bd145a (patch)
tree9b72a36f77d1eedb6da09e3613ac2fd8af68f41b
parent7a1b475ddb2267528ff2c2c719f5690bc8c5903b (diff)
downloadremoteproc-82b6677359074f75edb5d1e1e6902b6dc2bd145a.tar.gz
remoteproc-82b6677359074f75edb5d1e1e6902b6dc2bd145a.tar.xz
remoteproc-82b6677359074f75edb5d1e1e6902b6dc2bd145a.zip
ARM: OMAP2+: add pdata-quirks for OMAP3 ISP IOMMU
The OMAP3 ISP IOMMU does not have any reset lines, so it didn't need any pdata. The OMAP IOMMU driver now requires the platform data ops for device_enable/idle on all the IOMMU devices to be able to enable/disable the clocks and maintain the reference count and the omap_hwmod state machine. So, add the iommu pdata quirks for the OMAP3 ISP IOMMU. Signed-off-by: Suman Anna <s-anna@ti.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 7a39919a92a8..44711fef3554 100644
--- a/arch/arm/mach-omap2/pdata-quirks.c
+++ b/arch/arm/mach-omap2/pdata-quirks.c
@@ -105,6 +105,11 @@ static struct iommu_platform_data omap3_iommu_pdata = {
105 .device_idle = omap_device_idle, 105 .device_idle = omap_device_idle,
106}; 106};
107 107
108static struct iommu_platform_data omap3_iommu_isp_pdata = {
109 .device_enable = omap_device_enable,
110 .device_idle = omap_device_idle,
111};
112
108static int omap3_sbc_t3730_twl_callback(struct device *dev, 113static int omap3_sbc_t3730_twl_callback(struct device *dev,
109 unsigned gpio, 114 unsigned gpio,
110 unsigned ngpio) 115 unsigned ngpio)
@@ -579,6 +584,8 @@ static struct of_dev_auxdata omap_auxdata_lookup[] = {
579#ifdef CONFIG_ARCH_OMAP3 584#ifdef CONFIG_ARCH_OMAP3
580 OF_DEV_AUXDATA("ti,omap2-iommu", 0x5d000000, "5d000000.mmu", 585 OF_DEV_AUXDATA("ti,omap2-iommu", 0x5d000000, "5d000000.mmu",
581 &omap3_iommu_pdata), 586 &omap3_iommu_pdata),
587 OF_DEV_AUXDATA("ti,omap2-iommu", 0x480bd400, "480bd400.mmu",
588 &omap3_iommu_isp_pdata),
582 OF_DEV_AUXDATA("ti,omap3-smartreflex-core", 0x480cb000, 589 OF_DEV_AUXDATA("ti,omap3-smartreflex-core", 0x480cb000,
583 "480cb000.smartreflex", &omap_sr_pdata[OMAP_SR_CORE]), 590 "480cb000.smartreflex", &omap_sr_pdata[OMAP_SR_CORE]),
584 OF_DEV_AUXDATA("ti,omap3-smartreflex-mpu-iva", 0x480c9000, 591 OF_DEV_AUXDATA("ti,omap3-smartreflex-mpu-iva", 0x480c9000,