iommu/omap: Add support for configuring dsp iommus on DRA7xx
authorSuman Anna <s-anna@ti.com>
Fri, 2 Oct 2015 23:02:44 +0000 (18:02 -0500)
committerJoerg Roedel <jroedel@suse.de>
Wed, 14 Oct 2015 12:35:47 +0000 (14:35 +0200)
commit3ca9299e7dc65f2d8242cd7804818a8e840b5a26
treeb6f79aeb6709b74b4a73ea32616003ead616a3af
parentc0e44929b571c468c4eca2ffb0fc196b090193f1
iommu/omap: Add support for configuring dsp iommus on DRA7xx

The DSP MMUs on DRA7xx SoC requires configuring an additional
MMU_CONFIG register present in the DSP_SYSTEM sub module. This
setting dictates whether the DSP Core's MDMA and EDMA traffic
is routed through the respective MMU or not. Add the support
to the OMAP iommu driver so that the traffic is not bypassed
when enabling the MMUs.

The MMU_CONFIG register has two different bits for enabling
each of these two MMUs present in the DSP processor sub-system
on DRA7xx. An id field is added to the OMAP iommu object to
identify and enable each IOMMU. The id information and the
DSP_SYSTEM.MMU_CONFIG register programming is achieved through
the processing of the optional "ti,syscon-mmuconfig" property.
A proper value is assigned to the id field only when this
property is present.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/omap-iommu.c
drivers/iommu/omap-iommu.h