diff options
author | Dino Li <Dino.Li@ite.com.tw> | 2018-07-10 13:27:11 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-07-10 23:45:52 -0700 |
commit | 58ee1a67118bf138ab0ac0100982d9639a9c6e21 (patch) | |
tree | c1e963114cfb993bf3b7c3c33aac63d939c0754e | |
parent | 6e8bc42dbd8710b99cdba92c40a1aec1eabcb0d6 (diff) | |
download | chrome-ec-58ee1a67118bf138ab0ac0100982d9639a9c6e21.tar.gz |
it83xx: disable ROM codestabilize-10866.B
We dont need to use ROM code in the codebase. DX with 512KB flash
space has an overlapping issue with the ROM code (0x70000 ~ 0x7ffff).
This patch is to disable ROM code so we can properly use
the 512KB flash space.
BUG=none
BRANCH=none
TEST=Run console command "md .b 0x70000 256" on 512KB part,
and the result is from flash instead of ROM code.
Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
Change-Id: I9ad5cec44ec36b0f545324655c964bfe31f5a43f
Reviewed-on: https://chromium-review.googlesource.com/1131014
Reviewed-by: Jett Rink <jettrink@chromium.org>
-rw-r--r-- | core/nds32/init.S | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/nds32/init.S b/core/nds32/init.S index 1df5ae79ae..c1fe740c49 100644 --- a/core/nds32/init.S +++ b/core/nds32/init.S @@ -129,6 +129,11 @@ reset: li $r0, 0x00080005 mtsr $r0, $mr7 + /* Set ROM address at 0x80000 (disabled). */ + li $r1, 0x00F0109B + movi $r0, #0x8 + sbi $r0, [$r1] + /* Enable DLM 8k~12K(bit2) and DLM 12k~16k(bit3) */ li $r1, 0x00F02030 lbi $r0, [$r1] |