SoC s6: bl30 add pmp config [1/2]
PD#SWPL-172860
Problem:
s6 bl30 add pmp config.
Solution:
s6 bl30 add pmp config.
Verify:
s6_bl201
Change-Id: Ib97ccb347f3bc13b82379dad63b7e2c30606b90f
Signed-off-by: bangzheng.liu <bangzheng.liu@amlogic.com>
diff --git a/n200_func.c b/n200_func.c
index 0ae0bf0..f972456 100644
--- a/n200_func.c
+++ b/n200_func.c
@@ -86,7 +86,9 @@
start_text_addr, end_text_addr);
while (text_len_left > 0) {
- if ((text_len_left >= SIZE_32K) && ((pmp_region_base & (SIZE_32K - 1)) == 0))
+ if ((text_len_left >= SIZE_64K) && ((pmp_region_base & (SIZE_64K - 1)) == 0))
+ next_seg_len = SIZE_64K;
+ else if ((text_len_left >= SIZE_32K) && ((pmp_region_base & (SIZE_32K - 1)) == 0))
next_seg_len = SIZE_32K;
else if ((text_len_left >= SIZE_16K) && ((pmp_region_base & (SIZE_16K - 1)) == 0))
next_seg_len = SIZE_16K;
diff --git a/n200_func.h b/n200_func.h
index 4dabc88..de57a9f 100644
--- a/n200_func.h
+++ b/n200_func.h
@@ -39,6 +39,7 @@
#define SIZE_8K 0x2000
#define SIZE_16K 0x4000
#define SIZE_32K 0x8000
+#define SIZE_64K 0x10000
#define PMP_SHIFT 2
extern uint32_t _text;