diff options
author | Bill Richardson <wfrichar@chromium.org> | 2015-09-20 16:14:02 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-09-21 10:04:35 -0700 |
commit | 7323fd8fdafc4c8c0d751bc24e9e64740c624588 (patch) | |
tree | df265c5cb3f8e1c9637de3702ed781012ea895f4 /chip/nrf51/config_chip.h | |
parent | 40e20adefbb46dac71e781473388b33b41f7ff45 (diff) | |
download | chrome-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/nrf51/config_chip.h')
-rw-r--r-- | chip/nrf51/config_chip.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chip/nrf51/config_chip.h b/chip/nrf51/config_chip.h index cade6fed97..82ac548477 100644 --- a/chip/nrf51/config_chip.h +++ b/chip/nrf51/config_chip.h @@ -43,6 +43,14 @@ #define CONFIG_FLASH_SIZE 0x00040000 #define CONFIG_FLASH_BANK_SIZE 0x1000 +/* 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" /* Number of IRQ vectors on the NVIC */ |