summaryrefslogtreecommitdiff
path: root/board/kukui_scp
diff options
context:
space:
mode:
Diffstat (limited to 'board/kukui_scp')
-rw-r--r--board/kukui_scp/board.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/board/kukui_scp/board.h b/board/kukui_scp/board.h
index 7bd60c306a..85dbd49c66 100644
--- a/board/kukui_scp/board.h
+++ b/board/kukui_scp/board.h
@@ -20,20 +20,23 @@
* +-------------------- 0x0
* | ptr to stack_top 0x0
* | ptr to reset func 0x04
- * |-------------------- 0x08
- * | free shared space with AP
- * +-------------------- 0x005B0
- * | IPI shared buffer with AP (288 + 8) * 2
* +-------------------- 0x00800
- * | scp.img, exception vectors starting location.
- * +-------------------- 0x7B800
- * | free shared space with AP 2KB
+ * | ROM vectortable, .text, .rodata, .data LMA
+ * +-------------------- 0x10000
+ * | RAM .bss, .data
+ * +-------------------- 0x7BDB0
+ * | IPI shared buffer with AP (288 + 8) * 2
* +-------------------- 0x7C000
* | 8KB I-CACHE
* +-------------------- 0x7E000
+ * | 8KB D-CACHE
+ * +-------------------- 0x80000
*/
-#define CONFIG_RAM_BASE 0x00800
-#define CONFIG_RAM_SIZE 0x7B000
+#define ICACHE_BASE 0x7C000
+#define CONFIG_ROM_BASE 0x00800
+#define CONFIG_RAM_BASE 0x10000
+#define CONFIG_ROM_SIZE (CONFIG_RAM_BASE - CONFIG_ROM_BASE)
+#define CONFIG_RAM_SIZE (CONFIG_IPC_SHARED_OBJ_ADDR - CONFIG_RAM_BASE)
#define CONFIG_RO_MEM_OFF 0
/* Access DRAM through cached access */
@@ -45,7 +48,7 @@
/* IPI configs */
#define CONFIG_IPC_SHARED_OBJ_BUF_SIZE 288
#define CONFIG_IPC_SHARED_OBJ_ADDR \
- (CONFIG_RAM_BASE - \
+ (ICACHE_BASE - \
(CONFIG_IPC_SHARED_OBJ_BUF_SIZE + 2 * 4 /* int32_t */) * 2)
#define CONFIG_IPI
#define CONFIG_RPMSG_NAME_SERVICE