Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

David Daney and committed by
Ralf Baechle
ee71b7d2 48e1fd5a

+13
+12
arch/mips/include/asm/bootinfo.h
··· 125 125 */ 126 126 extern void plat_mem_setup(void); 127 127 128 + #ifdef CONFIG_SWIOTLB 129 + /* 130 + * Optional platform hook to call swiotlb_setup(). 131 + */ 132 + extern void plat_swiotlb_setup(void); 133 + 134 + #else 135 + 136 + static inline void plat_swiotlb_setup(void) {} 137 + 138 + #endif /* CONFIG_SWIOTLB */ 139 + 128 140 #endif /* _ASM_BOOTINFO_H */
+1
arch/mips/kernel/setup.c
··· 490 490 bootmem_init(); 491 491 device_tree_init(); 492 492 sparse_init(); 493 + plat_swiotlb_setup(); 493 494 paging_init(); 494 495 } 495 496