summaryrefslogtreecommitdiff
path: root/chip/host/config_chip.h
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2015-09-20 16:14:02 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-21 10:04:35 -0700
commit7323fd8fdafc4c8c0d751bc24e9e64740c624588 (patch)
treedf265c5cb3f8e1c9637de3702ed781012ea895f4 /chip/host/config_chip.h
parent40e20adefbb46dac71e781473388b33b41f7ff45 (diff)
downloadchrome-ec-7323fd8fdafc4c8c0d751bc24e9e64740c624588.tar.gz
cleanup: Put chip-specific configs in config_chip.h
include/config_std_internal_flash.h is an optional header that can be used to implement the most common EC flash layout. However, CONFIG_INTERNAL_STORAGE, CONFIG_MAPPED_STORAGE, and CONFIG_MAPPED_STORAGE_BASE are fixed by the SoC, so they belong in config_chip.h, not in the optional header. BRANCH=none BUG=chrome-os-partner:23796 TEST=make buildall Refactoring only, no behavioral differences. Change-Id: I114c3e194837041920e6f228a2bed6747be8231c Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/301330 Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'chip/host/config_chip.h')
-rw-r--r--chip/host/config_chip.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chip/host/config_chip.h b/chip/host/config_chip.h
index b8d46c47ac..17bd46cf88 100644
--- a/chip/host/config_chip.h
+++ b/chip/host/config_chip.h
@@ -22,6 +22,14 @@ extern char __host_flash[CONFIG_FLASH_SIZE];
#define CONFIG_FPU
+/* Memory-mapped internal flash */
+#define CONFIG_INTERNAL_STORAGE
+#define CONFIG_MAPPED_STORAGE
+
+/* Program is run directly from storage */
+#define CONFIG_MAPPED_STORAGE_BASE CONFIG_PROGRAM_MEMORY_BASE
+
+/* Compute the rest of the flash params from these */
#include "config_std_internal_flash.h"
/* Maximum number of deferrable functions */