summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2/omap-secure.c
diff options
context:
space:
mode:
authorMohsan Habibi <mohsan@motorola.com>2014-08-01 19:39:20 -0400
committerMohsan Habibi <mohsan@motorola.com>2014-09-04 19:32:52 +0000
commit2c2074ce7ee8f90b7eae5f73094f5ab5d3a5e06e (patch)
tree0cd9a665d55e8a13f25426f687f9079d20c4448b /arch/arm/mach-omap2/omap-secure.c
parentd4ae2fe7494a64ef1324165cb98609c51cba2d3a (diff)
downloadolio-linux-3.10-2c2074ce7ee8f90b7eae5f73094f5ab5d3a5e06e.tar.xz
olio-linux-3.10-2c2074ce7ee8f90b7eae5f73094f5ab5d3a5e06e.zip
IKXCLOCK-3184 arm: omap3: use dt reserve for secure ram
Since the OMAP smc #1 (secure memory interface call #1) isn't able to handle memory located in CS1 properly, convert the allocation of this space to use device tree reserve instead, so we can specify the exact phsyical address to make sure it gets allocated in CS0 memory. Change-Id: I3c1619594ec007cb1960f8845dc55c6e57b2537d Signed-off-by: Mohsan Habibi <mohsan@motorola.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap-secure.c')
-rw-r--r--arch/arm/mach-omap2/omap-secure.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/omap-secure.c b/arch/arm/mach-omap2/omap-secure.c
index b970440cffc..55b24c32099 100644
--- a/arch/arm/mach-omap2/omap-secure.c
+++ b/arch/arm/mach-omap2/omap-secure.c
@@ -58,10 +58,7 @@ u32 omap_secure_dispatcher(u32 idx, u32 flag, u32 nargs, u32 arg1, u32 arg2,
/* Allocate the memory to save secure ram */
int __init omap_secure_ram_reserve_memblock(void)
{
- u32 size = OMAP_SECURE_RAM_STORAGE;
-
- size = ALIGN(size, SECTION_SIZE);
- omap_secure_memblock_base = arm_memblock_steal(size, SECTION_SIZE);
+ omap_secure_memblock_base = OMAP_SECURE_RAM_STORAGE_ADDR;
return 0;
}