Skip to content

Commit 0af3e1a

Browse files
sumanannatmlind
authored andcommitted
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 db8918f ("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 <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent 19feeee commit 0af3e1a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arch/arm/mach-omap2/pdata-quirks.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ static struct iommu_platform_data omap3_iommu_pdata = {
9393
.device_idle = omap_device_idle,
9494
};
9595

96+
static struct iommu_platform_data omap3_iommu_isp_pdata = {
97+
.device_enable = omap_device_enable,
98+
.device_idle = omap_device_idle,
99+
};
100+
96101
static int omap3_sbc_t3730_twl_callback(struct device *dev,
97102
unsigned gpio,
98103
unsigned ngpio)
@@ -621,6 +626,8 @@ static struct of_dev_auxdata omap_auxdata_lookup[] = {
621626
#ifdef CONFIG_ARCH_OMAP3
622627
OF_DEV_AUXDATA("ti,omap2-iommu", 0x5d000000, "5d000000.mmu",
623628
&omap3_iommu_pdata),
629+
OF_DEV_AUXDATA("ti,omap2-iommu", 0x480bd400, "480bd400.mmu",
630+
&omap3_iommu_isp_pdata),
624631
OF_DEV_AUXDATA("ti,omap3-smartreflex-core", 0x480cb000,
625632
"480cb000.smartreflex", &omap_sr_pdata[OMAP_SR_CORE]),
626633
OF_DEV_AUXDATA("ti,omap3-smartreflex-mpu-iva", 0x480c9000,

0 commit comments

Comments
 (0)