aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm/include/mach/iommu.h
diff options
context:
space:
mode:
authorStepan Moskovchenko <stepanm@codeaurora.org>2011-02-24 21:00:39 -0500
committerDavid Brown <davidb@codeaurora.org>2011-03-08 17:40:58 -0500
commit41f3f5138a5ea71ee603f3d556953fce9aba3074 (patch)
tree7fe712ddf9b29098b527dbdf9766d4d155dc00d8 /arch/arm/mach-msm/include/mach/iommu.h
parent8bec99b586e2aa285076c2057e72b70ab5c43175 (diff)
msm: iommu: Clock control for the IOMMU driver
Add clock control to the IOMMU driver. The IOMMU bus clock (and potentially an AXI clock) need to be on to gain access to IOMMU registers. Actively control these clocks when needed instead of leaving them on. 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/iommu.h')
-rw-r--r--arch/arm/mach-msm/include/mach/iommu.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/arm/mach-msm/include/mach/iommu.h b/arch/arm/mach-msm/include/mach/iommu.h
index 296c0f10f230..8738a4455588 100644
--- a/arch/arm/mach-msm/include/mach/iommu.h
+++ b/arch/arm/mach-msm/include/mach/iommu.h
@@ -1,4 +1,4 @@
1/* Copyright (c) 2010, Code Aurora Forum. All rights reserved. 1/* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
2 * 2 *
3 * This program is free software; you can redistribute it and/or modify 3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and 4 * it under the terms of the GNU General Public License version 2 and
@@ -19,6 +19,7 @@
19#define MSM_IOMMU_H 19#define MSM_IOMMU_H
20 20
21#include <linux/interrupt.h> 21#include <linux/interrupt.h>
22#include <linux/clk.h>
22 23
23/* Sharability attributes of MSM IOMMU mappings */ 24/* Sharability attributes of MSM IOMMU mappings */
24#define MSM_IOMMU_ATTR_NON_SH 0x0 25#define MSM_IOMMU_ATTR_NON_SH 0x0
@@ -74,13 +75,17 @@ struct msm_iommu_ctx_dev {
74 * struct msm_iommu_drvdata - A single IOMMU hardware instance 75 * struct msm_iommu_drvdata - A single IOMMU hardware instance
75 * @base: IOMMU config port base address (VA) 76 * @base: IOMMU config port base address (VA)
76 * @irq: Interrupt number 77 * @irq: Interrupt number
77 * 78 * @clk: The bus clock for this IOMMU hardware instance
79 * @pclk: The clock for the IOMMU bus interconnect
80 *
78 * A msm_iommu_drvdata holds the global driver data about a single piece 81 * A msm_iommu_drvdata holds the global driver data about a single piece
79 * of an IOMMU hardware instance. 82 * of an IOMMU hardware instance.
80 */ 83 */
81struct msm_iommu_drvdata { 84struct msm_iommu_drvdata {
82 void __iomem *base; 85 void __iomem *base;
83 int irq; 86 int irq;
87 struct clk *clk;
88 struct clk *pclk;
84}; 89};
85 90
86/** 91/**