diff options
-rw-r--r-- | arch/arm/mach-omap2/common.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap-secure.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap-secure.h | 7 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap4-common.c | 3 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/omap-secure.h | 14 |
5 files changed, 9 insertions, 18 deletions
diff --git a/arch/arm/mach-omap2/common.c b/arch/arm/mach-omap2/common.c index 4ce0d63e941b..b0f21b7d3760 100644 --- a/arch/arm/mach-omap2/common.c +++ b/arch/arm/mach-omap2/common.c | |||
@@ -19,7 +19,6 @@ | |||
19 | #include <linux/platform_data/dsp-omap.h> | 19 | #include <linux/platform_data/dsp-omap.h> |
20 | 20 | ||
21 | #include <plat/clock.h> | 21 | #include <plat/clock.h> |
22 | #include <plat/omap-secure.h> | ||
23 | #include <plat/vram.h> | 22 | #include <plat/vram.h> |
24 | 23 | ||
25 | #include "soc.h" | 24 | #include "soc.h" |
@@ -27,6 +26,7 @@ | |||
27 | #include "common.h" | 26 | #include "common.h" |
28 | #include "sdrc.h" | 27 | #include "sdrc.h" |
29 | #include "control.h" | 28 | #include "control.h" |
29 | #include "omap-secure.h" | ||
30 | 30 | ||
31 | /* Global address base setup code */ | 31 | /* Global address base setup code */ |
32 | 32 | ||
diff --git a/arch/arm/mach-omap2/omap-secure.c b/arch/arm/mach-omap2/omap-secure.c index e089e4d1ae38..b970440cffca 100644 --- a/arch/arm/mach-omap2/omap-secure.c +++ b/arch/arm/mach-omap2/omap-secure.c | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <asm/cacheflush.h> | 18 | #include <asm/cacheflush.h> |
19 | #include <asm/memblock.h> | 19 | #include <asm/memblock.h> |
20 | 20 | ||
21 | #include <plat/omap-secure.h> | ||
22 | #include "omap-secure.h" | 21 | #include "omap-secure.h" |
23 | 22 | ||
24 | static phys_addr_t omap_secure_memblock_base; | 23 | static phys_addr_t omap_secure_memblock_base; |
diff --git a/arch/arm/mach-omap2/omap-secure.h b/arch/arm/mach-omap2/omap-secure.h index c90a43589abe..0e729170c46b 100644 --- a/arch/arm/mach-omap2/omap-secure.h +++ b/arch/arm/mach-omap2/omap-secure.h | |||
@@ -52,6 +52,13 @@ extern u32 omap_secure_dispatcher(u32 idx, u32 flag, u32 nargs, | |||
52 | u32 arg1, u32 arg2, u32 arg3, u32 arg4); | 52 | u32 arg1, u32 arg2, u32 arg3, u32 arg4); |
53 | extern u32 omap_smc2(u32 id, u32 falg, u32 pargs); | 53 | extern u32 omap_smc2(u32 id, u32 falg, u32 pargs); |
54 | extern phys_addr_t omap_secure_ram_mempool_base(void); | 54 | extern phys_addr_t omap_secure_ram_mempool_base(void); |
55 | extern int omap_secure_ram_reserve_memblock(void); | ||
55 | 56 | ||
57 | #ifdef CONFIG_OMAP4_ERRATA_I688 | ||
58 | extern int omap_barrier_reserve_memblock(void); | ||
59 | #else | ||
60 | static inline void omap_barrier_reserve_memblock(void) | ||
61 | { } | ||
62 | #endif | ||
56 | #endif /* __ASSEMBLER__ */ | 63 | #endif /* __ASSEMBLER__ */ |
57 | #endif /* OMAP_ARCH_OMAP_SECURE_H */ | 64 | #endif /* OMAP_ARCH_OMAP_SECURE_H */ |
diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c index 05d55fb3f8f5..d25845c471da 100644 --- a/arch/arm/mach-omap2/omap4-common.c +++ b/arch/arm/mach-omap2/omap4-common.c | |||
@@ -25,8 +25,6 @@ | |||
25 | #include <asm/mach/map.h> | 25 | #include <asm/mach/map.h> |
26 | #include <asm/memblock.h> | 26 | #include <asm/memblock.h> |
27 | 27 | ||
28 | #include <plat/omap-secure.h> | ||
29 | |||
30 | #include "../plat-omap/sram.h" | 28 | #include "../plat-omap/sram.h" |
31 | 29 | ||
32 | #include "omap-wakeupgen.h" | 30 | #include "omap-wakeupgen.h" |
@@ -35,6 +33,7 @@ | |||
35 | #include "mmc.h" | 33 | #include "mmc.h" |
36 | #include "hsmmc.h" | 34 | #include "hsmmc.h" |
37 | #include "omap4-sar-layout.h" | 35 | #include "omap4-sar-layout.h" |
36 | #include "omap-secure.h" | ||
38 | 37 | ||
39 | #ifdef CONFIG_CACHE_L2X0 | 38 | #ifdef CONFIG_CACHE_L2X0 |
40 | static void __iomem *l2cache_base; | 39 | static void __iomem *l2cache_base; |
diff --git a/arch/arm/plat-omap/include/plat/omap-secure.h b/arch/arm/plat-omap/include/plat/omap-secure.h deleted file mode 100644 index 0e4acd2d2deb..000000000000 --- a/arch/arm/plat-omap/include/plat/omap-secure.h +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | #ifndef __OMAP_SECURE_H__ | ||
2 | #define __OMAP_SECURE_H__ | ||
3 | |||
4 | #include <linux/types.h> | ||
5 | |||
6 | extern int omap_secure_ram_reserve_memblock(void); | ||
7 | |||
8 | #ifdef CONFIG_OMAP4_ERRATA_I688 | ||
9 | extern int omap_barrier_reserve_memblock(void); | ||
10 | #else | ||
11 | static inline void omap_barrier_reserve_memblock(void) | ||
12 | { } | ||
13 | #endif | ||
14 | #endif /* __OMAP_SECURE_H__ */ | ||