summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm
diff options
context:
space:
mode:
authorDavid Daney <ddaney@caviumnetworks.com>2010-10-02 00:27:33 +0400
committerRalf Baechle <ralf@linux-mips.org>2010-10-29 22:08:32 +0400
commitee71b7d2f834d5e4b3a43001b2fa88743ed71a2c (patch)
tree9d7c5359c42908712a982c14f7dbf2d0b59f9e3c /arch/mips/include/asm
parent48e1fd5a81416a037f5a48120bf281102f2584e2 (diff)
downloadlinux-ee71b7d2f834d5e4b3a43001b2fa88743ed71a2c.tar.xz
MIPS: Add a platform hook for swiotlb setup.
This allows platforms that are using the swiotlb to initialize it. Signed-off-by: David Daney <ddaney@caviumnetworks.com> Patchwork: http://patchwork.linux-mips.org/patch/1638/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm')
-rw-r--r--arch/mips/include/asm/bootinfo.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/mips/include/asm/bootinfo.h b/arch/mips/include/asm/bootinfo.h
index 15a8ef0707c6..35cd1bab69c3 100644
--- a/arch/mips/include/asm/bootinfo.h
+++ b/arch/mips/include/asm/bootinfo.h
@@ -125,4 +125,16 @@ extern unsigned long fw_arg0, fw_arg1, fw_arg2, fw_arg3;
*/
extern void plat_mem_setup(void);
+#ifdef CONFIG_SWIOTLB
+/*
+ * Optional platform hook to call swiotlb_setup().
+ */
+extern void plat_swiotlb_setup(void);
+
+#else
+
+static inline void plat_swiotlb_setup(void) {}
+
+#endif /* CONFIG_SWIOTLB */
+
#endif /* _ASM_BOOTINFO_H */