summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm/smd_private.h
diff options
context:
space:
mode:
authorDaniel Walker <dwalker@codeaurora.org>2010-03-17 10:51:10 -0700
committerDaniel Walker <dwalker@codeaurora.org>2010-05-12 09:19:04 -0700
commit74df1d07ee01b7276cba64160ea6dfe195de008f (patch)
treef0697344edc0f0d7fa90bd6c7b7b6315c90a5f20 /arch/arm/mach-msm/smd_private.h
parent1a86fbc167fdf8ac387a52d49782d7a5bc1d9ac9 (diff)
downloadtalos-obmc-linux-74df1d07ee01b7276cba64160ea6dfe195de008f.tar.gz
talos-obmc-linux-74df1d07ee01b7276cba64160ea6dfe195de008f.zip
arm: msm: smd: msm7x30 a2m clean up
This moves the msm_a2m_int() function into the header, and does a small macro clean up to be more inline with Linux norms. No functional changes. Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm/smd_private.h')
-rw-r--r--arch/arm/mach-msm/smd_private.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/mach-msm/smd_private.h b/arch/arm/mach-msm/smd_private.h
index 3d337ce35a61..727bfe68aa9b 100644
--- a/arch/arm/mach-msm/smd_private.h
+++ b/arch/arm/mach-msm/smd_private.h
@@ -19,6 +19,9 @@
#include <linux/platform_device.h>
#include <linux/spinlock.h>
#include <linux/list.h>
+#include <linux/io.h>
+
+#include <mach/msm_iomap.h>
struct smem_heap_info {
unsigned initialized;
@@ -384,4 +387,17 @@ static inline int _smd_alloc_channel(struct smd_channel *ch)
}
#endif /* CONFIG_MSM_SMD_PKG3 */
+#if defined(CONFIG_ARCH_MSM7X30)
+static inline void msm_a2m_int(uint32_t irq)
+{
+ writel(1 << irq, MSM_GCC_BASE + 0x8);
+}
+#else
+static inline void msm_a2m_int(uint32_t irq)
+{
+ writel(1, MSM_CSR_BASE + 0x400 + (irq * 4));
+}
+#endif /* CONFIG_ARCH_MSM7X30 */
+
+
#endif
OpenPOWER on IntegriCloud