aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap-iommu.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix mach-omap2/omap-iommu.c to prevent NULL pointer deref and fix a warning.Scott Anderson2012-10-121-3/+2
| | | | | Change-Id: Iee7790cd529d8823b8c0606a3e4e614e94df0a77 Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
* omap: iommu: relax constraint value to allow CSWRMiguel Vadillo2012-08-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | The iommu driver currently requests a latency constraint, if configured in platform data, on the power domain it is present in. These values are required only for OMAP4 and beyond and is done to ensure the AMMU context is maintained when the corresponding power domain goes to a low power state during cpuidle path. The AMMU context is retained in CSWR, but is lost in OSWR. The current constraint value (10) for OMAP4+ is high and restricts the power domain to remain in ON state as long as the processor is active. This value is relaxed to 400 to allow a lower power CSWR state during cpuidle path. The context is saved and restored properly when suspending the remote processor. Change-Id: I89fd125f2244ae1691843c3c078aa6314a7ae8a6 Signed-off-by: Miguel Vadillo <vadillo@ti.com> Signed-off-by: Suman Anna <s-anna@ti.com>
* omap: iommu: program constraints based on platform dataSubramaniam C.A2012-04-181-0/+6
| | | | | | | | | | | | | | | | | | | | IOMMU driver requests and releases constraints in iommu_get and iommu_put respectively. These constraints are actually needed only on OMAP4 and beyond for sub-systems that have an AMMU. The current driver code has these values hard-coded for all the chips. A new platform data field has been added now for the constraints values, and this allows the values to be programmed based on the OMAP chip and also allow a unique value if needed for each iommu instance. The logic in IOMMU driver code is adjusted to request the constraints only if the relevant platform data field is set. Change-Id: Iab18cbdde1d7fa7507dbff0b9512c8577b42fefd Signed-off-by: Subramaniam C.A <subramaniam.ca@ti.com> Signed-off-by: Suman Anna <s-anna@ti.com>
* omap: fix compiler warning in iommu codeIliyan Malchev2011-07-291-1/+1
| | | | Signed-off-by: Iliyan Malchev <malchev@google.com>
* omap: iommu: adapt to hwmod implementationHari Kanigeri2011-06-141-97/+73
| | | | | | | | This patch adapts iommu to hwmod implementation for OMAP4. Work needs to be done for OMAP3. Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com> Signed-off-by: Suman Anna <s-anna@ti.com>
* omap: fix random meta-iommu issuesGuzman Lugo, Fernando2011-06-141-1/+1
| | | | | | | | Fixes the Kconfig and Makefile to not tristate omap iommu support (make it bool instead). Changes the clock from ducati_ick to ipu_fck. Change-Id: I80ac067ad2d604d50fb373245bd1d8b9acccd6f5 Signed-off-by: Guzman Lugo, Fernando <fernando.lugo@ti.com>
* OMAP: iommu: make iva2 iommu selectableFelipe Contreras2010-12-151-1/+1
| | | | | | | | | It seems dsp-link will do this, and tidspbridge too at some point, but right now it's not possible to select CONFIG_MPU_BRIDGE_IOMMU. Cc: Fernando Guzman Lugo <fernando.lugo@ti.com> Cc: Yogesh Marathe <yogesh_marathe@ti.com> Signed-off-by: Felipe Contreras <felipe.contreras@nokia.com>
* OMAP: iommu: create new api to set valid da rangeGuzman Lugo, Fernando2010-12-151-0/+8
| | | | | | | | Some IOMMUs cannot use the whole 0x0 - 0xFFFFFFFF range. With this new API the valid range can be set. Signed-off-by: Fernando Guzman Lugo <x0095840@ti.com> Acked-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
* omap iommu: update ducati mmu irq define nameKanigeri, Hari2010-06-291-1/+1
| | | | | | | | 2.6.34-rc6 kernel has the Ducati mmu irq define name changed, which is resulting in compilation error. Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com> Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
* omap iommu: support for OMAP4Kanigeri, Hari2010-05-141-5/+54
| | | | | | | This patch provides the iommu support for OMAP4 co-processors. Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com> Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
* omap iommu: renamed omap3-iommu to omap-iommuKanigeri, Hari2010-05-141-0/+108
This patch includes changes to omap3-iommu.c file to make it generic for all OMAPs. Renamed omap3-iommu.c to omap-iommu.c [Hiroshi DOYU: Remove unnecessary "iommu-y" in Makefile] Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com> Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>