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

ARM: OMAP2+: Move omap_reserve() locally to mach-omap2

omap_reserve() callback is defned only for mach-omap2.
So, moving definition of omap_reserve() to mach-omap2.
This helps is moving plat/omap_secure.h local to
mach-omap2

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Lokesh Vutla and committed by
Tony Lindgren
f583f0f2 f300af86

+21 -21
+20
arch/arm/mach-omap2/common.c
··· 16 16 #include <linux/init.h> 17 17 #include <linux/clk.h> 18 18 #include <linux/io.h> 19 + #include <linux/platform_data/dsp-omap.h> 19 20 20 21 #include <plat/clock.h> 22 + #include <plat/omap-secure.h> 23 + #include <plat/vram.h> 21 24 22 25 #include "soc.h" 23 26 #include "iomap.h" ··· 203 200 omap5_map_common_io(); 204 201 } 205 202 #endif 203 + 204 + /* 205 + * Stub function for OMAP2 so that common files 206 + * continue to build when custom builds are used 207 + */ 208 + int __weak omap_secure_ram_reserve_memblock(void) 209 + { 210 + return 0; 211 + } 212 + 213 + void __init omap_reserve(void) 214 + { 215 + omap_vram_reserve_sdram_memblock(); 216 + omap_dsp_reserve_sdram_memblock(); 217 + omap_secure_ram_reserve_memblock(); 218 + omap_barrier_reserve_memblock(); 219 + }
+1
arch/arm/mach-omap2/common.h
··· 343 343 struct omap_sdrc_params *sdrc_cs1); 344 344 struct omap2_hsmmc_info; 345 345 extern int omap4_twl6030_hsmmc_init(struct omap2_hsmmc_info *controllers); 346 + extern void omap_reserve(void); 346 347 347 348 #endif /* __ASSEMBLER__ */ 348 349 #endif /* __ARCH_ARM_MACH_OMAP2PLUS_COMMON_H */
-21
arch/arm/plat-omap/common.c
··· 17 17 #include <linux/dma-mapping.h> 18 18 19 19 #include "common.h" 20 - #include <plat/vram.h> 21 - #include <linux/platform_data/dsp-omap.h> 22 20 #include <plat-omap/dma-omap.h> 23 - 24 - #include <plat/omap-secure.h> 25 - 26 - void __init omap_reserve(void) 27 - { 28 - omap_vram_reserve_sdram_memblock(); 29 - omap_dsp_reserve_sdram_memblock(); 30 - omap_secure_ram_reserve_memblock(); 31 - omap_barrier_reserve_memblock(); 32 - } 33 21 34 22 void __init omap_init_consistent_dma_size(void) 35 23 { 36 24 #ifdef CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE 37 25 init_consistent_dma_size(CONFIG_FB_OMAP_CONSISTENT_DMA_SIZE << 20); 38 26 #endif 39 - } 40 - 41 - /* 42 - * Stub function for OMAP2 so that common files 43 - * continue to build when custom builds are used 44 - */ 45 - int __weak omap_secure_ram_reserve_memblock(void) 46 - { 47 - return 0; 48 27 }