]> git.karo-electronics.de Git - linux-beck.git/commit
iommu/msm: Add DT adaptation
authorSricharan R <sricharan@codeaurora.org>
Mon, 13 Jun 2016 11:36:02 +0000 (17:06 +0530)
committerJoerg Roedel <jroedel@suse.de>
Tue, 21 Jun 2016 11:56:00 +0000 (13:56 +0200)
commit109bd48ea2e1fb4e924712018397a51c7b2aaadd
tree334879f8576068e764c9d5657cc74438cf94111c
parent33688abb2802ff3a230bd2441f765477b94cc89e
iommu/msm: Add DT adaptation

The driver currently works based on platform data. Remove this
and add support for DT. A single master can have multiple ports
connected to more than one iommu.

                      master
                        |
                        |
                        |
           ------------------------
           |                      |
         IOMMU0                 IOMMU1
           |                      |
      ctx0   ctx1            ctx0   ctx1

This association of master and iommus/contexts were previously
represented by platform data parent/child device details. The client
drivers were responsible for programming all of the iommus/contexts
for the device. Now while adapting to generic DT bindings we maintain the
list of iommus, contexts that each master domain is connected to and
program all of them on attach/detach.

Signed-off-by: Sricharan R <sricharan@codeaurora.org>
Tested-by: Archit Taneja <architt@codeaurora.org>
Tested-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/msm_iommu.c
drivers/iommu/msm_iommu.h
drivers/iommu/msm_iommu_dev.c