aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm/include/mach
diff options
context:
space:
mode:
authorStepan Moskovchenko <stepanm@codeaurora.org>2011-02-24 21:00:42 -0500
committerDavid Brown <davidb@codeaurora.org>2011-03-08 17:40:59 -0500
commita43d8c101eb71bf4527dd7f36a34a5a502894f38 (patch)
treea00145fb4f24eca3e90edacbd9f29335c53b9c3e /arch/arm/mach-msm/include/mach
parent2e8c8ba98376459e73d03a285f5d3406b630ea2d (diff)
msm: iommu: Remove dependency on IDR
Remove the depencency on the IOMMU IDR register, as it may not be accessible depending on the security configuraton. This involves moving the NCB field of IDR into the platform data. Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org> Signed-off-by: David Brown <davidb@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm/include/mach')
-rw-r--r--arch/arm/mach-msm/include/mach/iommu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-msm/include/mach/iommu.h b/arch/arm/mach-msm/include/mach/iommu.h
index 4dfe7efcf4ea..5c7c955e6d25 100644
--- a/arch/arm/mach-msm/include/mach/iommu.h
+++ b/arch/arm/mach-msm/include/mach/iommu.h
@@ -45,9 +45,11 @@
45/** 45/**
46 * struct msm_iommu_dev - a single IOMMU hardware instance 46 * struct msm_iommu_dev - a single IOMMU hardware instance
47 * name Human-readable name given to this IOMMU HW instance 47 * name Human-readable name given to this IOMMU HW instance
48 * ncb Number of context banks present on this IOMMU HW instance
48 */ 49 */
49struct msm_iommu_dev { 50struct msm_iommu_dev {
50 const char *name; 51 const char *name;
52 int ncb;
51}; 53};
52 54
53/** 55/**
@@ -69,6 +71,7 @@ struct msm_iommu_ctx_dev {
69/** 71/**
70 * struct msm_iommu_drvdata - A single IOMMU hardware instance 72 * struct msm_iommu_drvdata - A single IOMMU hardware instance
71 * @base: IOMMU config port base address (VA) 73 * @base: IOMMU config port base address (VA)
74 * @ncb The number of contexts on this IOMMU
72 * @irq: Interrupt number 75 * @irq: Interrupt number
73 * @clk: The bus clock for this IOMMU hardware instance 76 * @clk: The bus clock for this IOMMU hardware instance
74 * @pclk: The clock for the IOMMU bus interconnect 77 * @pclk: The clock for the IOMMU bus interconnect
@@ -79,6 +82,7 @@ struct msm_iommu_ctx_dev {
79struct msm_iommu_drvdata { 82struct msm_iommu_drvdata {
80 void __iomem *base; 83 void __iomem *base;
81 int irq; 84 int irq;
85 int ncb;
82 struct clk *clk; 86 struct clk *clk;
83 struct clk *pclk; 87 struct clk *pclk;
84}; 88};