summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic (Chun-Ju) Yang <victoryang@chromium.org>2014-01-16 15:59:47 +0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-01-17 18:06:55 +0000
commitca9c2744eace5c803a948502c032f99d602a0566 (patch)
tree0aa0a46b23d7598c67063bae80213143e064906b
parentfc91a7f7fdb7f73ba96ae351e5d8d9e2d8b94958 (diff)
downloadchrome-ec-ca9c2744eace5c803a948502c032f99d602a0566.tar.gz
mec1322: disable host write to mapped memory
EMI module has the ability to set different read and write ranges. Let's disable write on mapped memory. BUG=chrome-os-partner:24107 TEST=Write to mapped memory has no effect BRANCH=None Change-Id: I88654bde9208376103d3c084ee54991d886ea4cc Signed-off-by: Vic (Chun-Ju) Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/182795 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--chip/mec1322/lpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/mec1322/lpc.c b/chip/mec1322/lpc.c
index 3dc39a18e6..7974940e34 100644
--- a/chip/mec1322/lpc.c
+++ b/chip/mec1322/lpc.c
@@ -194,7 +194,7 @@ static void setup_lpc(void)
MEC1322_LPC_EMI_BAR = 0x0800800f;
MEC1322_EMI_MBA0 = ptr;
MEC1322_EMI_MRL0 = 0x200;
- MEC1322_EMI_MWL0 = 0x200;
+ MEC1322_EMI_MWL0 = 0x100;
/* We support LPC args and version 3 protocol */
*(lpc_get_memmap_range() + EC_MEMMAP_HOST_CMD_FLAGS) =