diff options
author | Yilun Lin <yllin@google.com> | 2018-12-20 17:05:24 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-01-24 00:51:28 -0800 |
commit | fa379e1983ec568e6ca475311af3f77dec9327ff (patch) | |
tree | 431922bd6b7625bf41b19eb55676f3bccbe8d83d /chip/mt_scp/build.mk | |
parent | 579719f073c3b526d5801a3b0cc886cc8246821f (diff) | |
download | chrome-ec-fa379e1983ec568e6ca475311af3f77dec9327ff.tar.gz |
mt_scp/memmap: Enable memmap between AP and SCP.
SCP/AP can access the AP/SCP address via memory address translation.
TEST=Run memmap (TEST-ONLY CL), see direct mapping makes sense:
Direct mapping:
00001000 INVAL
0f002000 INVAL
10003000 INVAL
1f004000 INVAL
20005000 40005000 => 20005000 OK
2f006000 4f006000 => 2f006000 OK
30007000 50007000 => 30007000 OK
3f008000 5f008000 => 3f008000 OK
40009000 INVAL
4f00a000 INVAL
5000b000 INVAL
5f00c000 INVAL
6000d000 6000d000 => 6000d000 OK
6f00e000 6f00e000 => 6f00e000 OK
7000f000 7000f000 => 7000f000 OK
7f010000 7f010000 => 7f010000 OK
80011000 80011000 => 80011000 OK
8f012000 8f012000 => 8f012000 OK
90013000 00013000 => 90013000 OK
9f014000 0f014000 => 9f014000 OK
a0015000 10015000 => a0015000 OK
af016000 1f016000 => af016000 OK
b0017000 20017000 => b0017000 OK
bf018000 2f018000 => bf018000 OK
c0019000 30019000 => c0019000 OK
cf01a000 3f01a000 => cf01a000 OK
d001b000 1001b000 => a001b000 BAD
df01c000 1f01c000 => af01c000 BAD
(these are ok as 0x1* is mapped from both 0xd* and 0xa*)
e001d000 a001d000 => e001d000 OK
ef01e000 af01e000 => ef01e000 OK
f001f000 9001f000 => f001f000 OK
ff020000 9f020000 => ff020000 OK
BRANCH=None
BUG=b:114326670
Change-Id: I29298c2e5a897d08d21390c751bdd881170adb59
Signed-off-by: Yilun Lin <yllin@google.com>
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1385910
Reviewed-by: Erin Lo <erin.lo@mediatek.com>
Reviewed-by: Rong Chang <rongchang@chromium.org>
Diffstat (limited to 'chip/mt_scp/build.mk')
-rw-r--r-- | chip/mt_scp/build.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/mt_scp/build.mk b/chip/mt_scp/build.mk index dac5e3dfcb..03937f8591 100644 --- a/chip/mt_scp/build.mk +++ b/chip/mt_scp/build.mk @@ -10,7 +10,7 @@ CORE:=cortex-m CFLAGS_CPU+=-march=armv7e-m -mcpu=cortex-m4 # Required chip modules -chip-y=clock.o gpio.o stepping_stone.o system.o uart.o +chip-y=clock.o gpio.o memmap.o stepping_stone.o system.o uart.o # Optional chip modules chip-$(CONFIG_COMMON_TIMER)+=hrtimer.o |