Commit ee71b7d2 authored by David Daney's avatar David Daney Committed by Ralf Baechle

MIPS: Add a platform hook for swiotlb setup.

This allows platforms that are using the swiotlb to initialize it.
Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
Patchwork: http://patchwork.linux-mips.org/patch/1638/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 48e1fd5a
...@@ -125,4 +125,16 @@ extern unsigned long fw_arg0, fw_arg1, fw_arg2, fw_arg3; ...@@ -125,4 +125,16 @@ extern unsigned long fw_arg0, fw_arg1, fw_arg2, fw_arg3;
*/ */
extern void plat_mem_setup(void); 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 */ #endif /* _ASM_BOOTINFO_H */
...@@ -490,6 +490,7 @@ static void __init arch_mem_init(char **cmdline_p) ...@@ -490,6 +490,7 @@ static void __init arch_mem_init(char **cmdline_p)
bootmem_init(); bootmem_init();
device_tree_init(); device_tree_init();
sparse_init(); sparse_init();
plat_swiotlb_setup();
paging_init(); paging_init();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment