summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/asurada_scp/board.c13
-rw-r--r--board/asurada_scp/board.h3
2 files changed, 16 insertions, 0 deletions
diff --git a/board/asurada_scp/board.c b/board/asurada_scp/board.c
index 06b790cd81..423002aaee 100644
--- a/board/asurada_scp/board.c
+++ b/board/asurada_scp/board.c
@@ -4,6 +4,19 @@
*/
/* Asurada SCP configuration */
+#include "cache.h"
+#include "csr.h"
#include "registers.h"
+struct mpu_entry mpu_entries[NR_MPU_ENTRIES] = {
+ /* SRAM (for most code, data) */
+ {0, 0x0ffc00, MPU_ATTR_C | MPU_ATTR_W | MPU_ATTR_R},
+ /* SRAM (for IPI shared buffer) */
+ {0x0ffc00, 0x100000, MPU_ATTR_W | MPU_ATTR_R},
+ /* For AP domain */
+ {0x60000000, 0x70000000, MPU_ATTR_W | MPU_ATTR_R},
+ /* For SCP sys */
+ {0x70000000, 0x80000000, MPU_ATTR_W | MPU_ATTR_R},
+};
+
#include "gpio_list.h"
diff --git a/board/asurada_scp/board.h b/board/asurada_scp/board.h
index 860b744ac3..debaedfac5 100644
--- a/board/asurada_scp/board.h
+++ b/board/asurada_scp/board.h
@@ -62,6 +62,9 @@
#define SCP_IPI_NS_SERVICE 0xFF
+/* MPU settings */
+#define NR_MPU_ENTRIES 16
+
#ifndef __ASSEMBLER__
#include "gpio_signal.h"
#endif /* !__ASSEMBLER__ */