diff options
author | Tzung-Bi Shih <tzungbi@chromium.org> | 2020-11-11 13:17:38 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-19 09:20:25 +0000 |
commit | 854d5dc5b930ed56d56806d9acdc1b3df9e6a713 (patch) | |
tree | a8ae952131beeffec131caafeefbc4d4e4445b12 /board | |
parent | fe1800f01d7151064f780d8623b71778b7a81f78 (diff) | |
download | chrome-ec-854d5dc5b930ed56d56806d9acdc1b3df9e6a713.tar.gz |
asurada_scp: enable DRAM cache
SCP view 0x1000_0000 maps to AP view 0x5000_0000. Total size is 20MB.
BRANCH=none
BUG=b:156222459
TEST=make BOARD=asurada_scp
Signed-off-by: Tzung-Bi Shih <tzungbi@chromium.org>
Change-Id: I7357247d7621d098673890c75c26aa1b6e2d4b50
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2531755
Reviewed-by: tinghan shen <tinghan.shen@mediatek.com>
Reviewed-by: Yunfei Dong <yunfei.dong@mediatek.corp-partner.google.com>
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/asurada_scp/board.c | 1 | ||||
-rw-r--r-- | board/asurada_scp/board.h | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/board/asurada_scp/board.c b/board/asurada_scp/board.c index 423002aaee..aaf1370385 100644 --- a/board/asurada_scp/board.c +++ b/board/asurada_scp/board.c @@ -17,6 +17,7 @@ struct mpu_entry mpu_entries[NR_MPU_ENTRIES] = { {0x60000000, 0x70000000, MPU_ATTR_W | MPU_ATTR_R}, /* For SCP sys */ {0x70000000, 0x80000000, MPU_ATTR_W | MPU_ATTR_R}, + {0x10000000, 0x11400000, MPU_ATTR_C | 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 82e0602a53..1648862275 100644 --- a/board/asurada_scp/board.h +++ b/board/asurada_scp/board.h @@ -65,6 +65,12 @@ /* MPU settings */ #define NR_MPU_ENTRIES 16 +/* 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 */ + #ifndef __ASSEMBLER__ #include "gpio_signal.h" #endif /* !__ASSEMBLER__ */ |