summaryrefslogtreecommitdiff
path: root/board/cherry_scp/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/cherry_scp/board.c')
-rw-r--r--board/cherry_scp/board.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/board/cherry_scp/board.c b/board/cherry_scp/board.c
new file mode 100644
index 0000000000..31f1f069de
--- /dev/null
+++ b/board/cherry_scp/board.c
@@ -0,0 +1,23 @@
+/* Copyright 2021 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+/* Cherry 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},
+ {0x10000000, 0x11400000, MPU_ATTR_W | MPU_ATTR_R},
+};
+
+#include "gpio_list.h"