summaryrefslogtreecommitdiff
path: root/chip/lm4/config.h
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2012-04-27 10:23:14 -0700
committerBill Richardson <wfrichar@chromium.org>2012-05-01 15:54:39 -0700
commit8d921af0bb4f189c10d11bb0bfce286fb92d348c (patch)
tree31dd1245146630cf90d10bdb96ef8013236ecaf0 /chip/lm4/config.h
parenta5027ece4cb02a736db3db1e971bffd699422dec (diff)
downloadchrome-ec-8d921af0bb4f189c10d11bb0bfce286fb92d348c.tar.gz
Add basic FMAP to EC firmware image.
This is very basic, so you can only rely on RO_SECTION, RW_SECTION_A, and RW_SECTION_B for now. We'll fill in more regions as we add vboot stuff. Still, you should be able to do things like this: flashrom -p internal:bus=lpc -r ec.bin flashrom -p internal:bus=lpc -w ec.bin -i RW_SECTION:ec.B.flat BUG=chrome-os-partner:8198 TEST=manual Build the image, look for the FMAP in it. cd src/platform/ec make BOARD=link dump_fmap ./build/link/ec.bin Change-Id: I0adbbfb8e975faae805bda271873fcef46590cf4 Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'chip/lm4/config.h')
-rw-r--r--chip/lm4/config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chip/lm4/config.h b/chip/lm4/config.h
index 387671c22e..bb82dd7b31 100644
--- a/chip/lm4/config.h
+++ b/chip/lm4/config.h
@@ -22,6 +22,15 @@
#define CONFIG_FW_A_OFF CONFIG_FW_IMAGE_SIZE
#define CONFIG_FW_B_OFF (2 * CONFIG_FW_IMAGE_SIZE)
+/* FIXME(wfrichar): Replace with real GBB size & location. */
+#define CONFIG_FW_RO_GBB_SIZE CONFIG_FLASH_BANK_SIZE
+#define CONFIG_FW_RO_GBB_OFF (CONFIG_FW_RO_OFF + CONFIG_FW_IMAGE_SIZE - \
+ CONFIG_FW_RO_GBB_SIZE)
+#define CONFIG_FW_RO_SIZE (CONFIG_FW_IMAGE_SIZE - CONFIG_FW_RO_GBB_SIZE)
+#define CONFIG_FW_A_SIZE CONFIG_FW_IMAGE_SIZE
+#define CONFIG_FW_B_SIZE CONFIG_FW_IMAGE_SIZE
+
+
/* Number of IRQ vectors on the NVIC */
#define CONFIG_IRQ_COUNT 132