Patchwork [U-Boot,05/10] Exynos5420: Modify TZPC init to support 5420

login
register
mail settings
Submitter Rajeshwari Birje
Date Sept. 2, 2013, 12:15 p.m.
Message ID <1378124111-26145-6-git-send-email-rajeshwari.s@samsung.com>
Download mbox | patch
Permalink /patch/271909/
State Superseded
Delegated to: Minkyu Kang
Headers show

Comments

Rajeshwari Birje - Sept. 2, 2013, 12:15 p.m.
From: Akshay Saraswat <akshay.s@samsung.com>

Currently, part of TZPC init code for Exynos5 starts setting DECPROT
from the base address 0x10100000 upto 0x10190000 but in case of
Exynos5420 we need it to start from 0x0100E0000 and keep end address
same as 0x10190000.

Signed-off-by: Rajeshwari S Shinde <rajeshwari.s@samsung.com>
Signed-off-by: Akshay Saraswat <akshay.s@samsung.com>
---
 arch/arm/cpu/armv7/exynos/tzpc.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Patch

diff --git a/arch/arm/cpu/armv7/exynos/tzpc.c b/arch/arm/cpu/armv7/exynos/tzpc.c
index 395077c..1102596 100644
--- a/arch/arm/cpu/armv7/exynos/tzpc.c
+++ b/arch/arm/cpu/armv7/exynos/tzpc.c
@@ -23,7 +23,12 @@  void tzpc_init(void)
 	else if (cpu_is_exynos4())
 		end = start + ((EXYNOS4_NR_TZPC_BANKS - 1) * TZPC_BASE_OFFSET);
 
-	for (addr = start; addr <= end; addr += TZPC_BASE_OFFSET) {
+	if (proid_is_exynos5420())
+		addr = start - 0x20000;
+	else
+		addr = start;
+
+	for (; addr <= end; addr += TZPC_BASE_OFFSET) {
 		tzpc = (struct exynos_tzpc *)addr;
 
 		if (addr == start)