OSDN Git Service

iommu/arm-smmu: add option to enable halt/resume of SMMU
authorSusheel Khiani <skhiani@codeaurora.org>
Tue, 6 Oct 2015 13:59:21 +0000 (19:29 +0530)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:14:30 +0000 (11:14 -0700)
commit551c3178fc1f7864c6382933dc838da3aebd994d
tree6037e56ec1929efbfcbc5a7bf32d2e1fe4d8de64
parent5997478ea4a664a16a5816d9a3cdff3661659906
iommu/arm-smmu: add option to enable halt/resume of SMMU

Before SMMU is powered down, SMMU needs to be in
idle state prior to power collapse. When 'halt' is
received by SMMU, it ensures that no new requests
enters and all outstanding requests are completed
and generates an acknowledgment for halt request.

Add an option to register a notifier on regulator
so that SMMU can be halted/resumed when regulator
is powered down/up. Some of the targets have built
in provision in hardware to halt SMMU when there
are no on going transactions. We should keep this
option disable for those targets.

Change-Id: Ia2f8a934a9d64daefdacd517eb22f09de5eeb273
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
Documentation/devicetree/bindings/iommu/arm,smmu.txt
drivers/iommu/arm-smmu.c