iommu/arm-smmu: fix calculation of TCR.T0SZ
authorWill Deacon <will.deacon@arm.com>
Tue, 24 Jun 2014 17:26:26 +0000 (18:26 +0100)
committerWill Deacon <will.deacon@arm.com>
Wed, 2 Jul 2014 10:55:49 +0000 (11:55 +0100)
commita65217a4bcdb654e04fcc42b302d8a15708e14ce
tree1affd8e038912b297f888f0ed84631a758968816
parent7171511eaec5bf23fb06078f59784a3a0626b38f
iommu/arm-smmu: fix calculation of TCR.T0SZ

T0SZ controls the input address range for TTBR0, so use the input
address range rather than the output address range for the calculation.
For stage-2, this means using the output size of stage-1.

Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu.c