diff options
author | Dino Li <Dino.Li@ite.com.tw> | 2018-08-03 13:55:43 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-03 13:37:27 -0700 |
commit | 16c114ed04bda59b601c0a75dce3b23c29b45668 (patch) | |
tree | be9b4ec10f9dca0f52f9ad1ccde181a8e58a8556 /core/nds32 | |
parent | 6a664f995c6c637023874a56e6bdbadf4259a857 (diff) | |
download | chrome-ec-16c114ed04bda59b601c0a75dce3b23c29b45668.tar.gz |
it83xx: clear BRAM if it is not valid
IT8320 do not have indicator for VBAT power to indicate if BRAM
is valid or not, so we create a magic number to do the job.
And BRAM will get cleared if it is not valid.
BUG=none
BRANCH=none
TEST=BRAM will be cleared if valid field of BRAM doesn't
match the magic number.
Change-Id: I6f3b166830f6c2f33f663ec0e5da9178d81d397b
Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
Reviewed-on: https://chromium-review.googlesource.com/1158453
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
Diffstat (limited to 'core/nds32')
-rw-r--r-- | core/nds32/init.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/nds32/init.S b/core/nds32/init.S index c1fe740c49..6c8f9e2055 100644 --- a/core/nds32/init.S +++ b/core/nds32/init.S @@ -189,6 +189,8 @@ data_loop: li $r5, 0x00000007 mtsr $r5, $IVB + /* clear BRAM if it is not valid */ + jal chip_bram_valid /* Jump to C routine */ jal main |