summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2015-12-08 16:46:01 -0800
committerchrome-bot <chrome-bot@chromium.org>2015-12-09 06:36:26 -0800
commit55e5649494918be90f8c2651f40b7b896104a14e (patch)
tree34830c60d9d5590c6f243af17f9e333443ed0a25
parent432ea75d92f58e8e31fadb8789c71f49769d467d (diff)
downloadchrome-ec-55e5649494918be90f8c2651f40b7b896104a14e.tar.gz
cr50: fix calculations determining the image type
The startup message includes the type of the image it is running (RO vs RW currently). cr50 reports RW as RO, which this patch fixes. This issue requires a bit more attention though: first, the RO type can be deduced at compile time. Second, RW and RW_B should be accommodated. RW_B should also be accounted in other places in the code where now only two options are considered: RO vs RW. BRANCH=none BUG=chromium:567938 TEST=the startup message now reads: --- UART initialized after reboot --- [Reset cause: power-on] [Image: RW, cr50_v1.1.4162-f1e71a6-dirty 2015-12-08 16:39:00 vbendeb@eskimo.mtv.corp.google.com] Change-Id: I0db2db4413a13ebe915e1081b47cd4a6f85cbdd8 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/316922 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org>
-rw-r--r--chip/g/config_chip.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chip/g/config_chip.h b/chip/g/config_chip.h
index ffe8b50f1e..c492bb2da6 100644
--- a/chip/g/config_chip.h
+++ b/chip/g/config_chip.h
@@ -74,4 +74,7 @@
#define CONFIG_CUSTOMIZED_RO
#define CONFIG_EXTENSION_COMMAND 0xbaccd00a
+#undef CONFIG_RO_SIZE
+#define CONFIG_RO_SIZE CONFIG_RW_MEM_OFF
+
#endif /* __CROS_EC_CONFIG_CHIP_H */