From d7579bd4589d08eeabf7c01f055b925acb7aed67 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Fri, 28 Dec 2018 11:26:03 +0800 Subject: mt_scp: Add support to store some code in DRAM This allows to store specific code/data in a .dram region. This is used by mt_scp to run code off DRAM, as we plan to have more code than what can fit in SRAM. BRANCH=none BUG=b:122058243 TEST=make BOARD=kukui_scp -j objdump -x build/kukui_scp/ec.obj => Some code is loaded in DRAM TEST=Load kukui_scp, icachetest works Change-Id: Idbab809ba86cabe3b984944adc2781b37d2d544b Signed-off-by: Nicolas Boichat Reviewed-on: https://chromium-review.googlesource.com/1391542 --- board/kukui_scp/board.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'board') diff --git a/board/kukui_scp/board.h b/board/kukui_scp/board.h index c9093e9663..7c0eca93c4 100644 --- a/board/kukui_scp/board.h +++ b/board/kukui_scp/board.h @@ -12,6 +12,12 @@ #undef CONFIG_LID_SWITCH #undef CONFIG_FW_INCLUDE_RO +/* Access DRAM through cached access */ +#define CONFIG_DRAM_BASE 0x10000000 +/* Shared memory address in AP physical address space. */ +#define CONFIG_DRAM_BASE_LOAD 0x50000000 +#define CONFIG_DRAM_SIZE 0x01400000 /* 20 MB */ + /* IPI configs */ #define CONFIG_IPI -- cgit v1.2.1