diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2015-03-10 11:50:39 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-03-11 23:18:09 +0000 |
commit | 27199e7b64659a2db7114c670b903578858f8d50 (patch) | |
tree | 71a7332d6b7bbbe3cd9c57ca21b1d736daff8f96 /board/strago | |
parent | d32be0292f1e1aa389da579ea29f7a151ae002e1 (diff) | |
download | chrome-ec-27199e7b64659a2db7114c670b903578858f8d50.tar.gz |
spi_flash: Add protect support for W25X40
W25X40 uses a different protection register encoding than our existing
W25Q64 code. Move the SPI ROM option to a config, and add support for
the new part.
BUG=chrome-os-partner:37688
TEST=`make buildall -j`. W25X40 protection code tested in a subsequent
commit.
BRANCH=None
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Change-Id: Iaaeabf42c6c62c20debc91afd2cf8671c14244c8
Reviewed-on: https://chromium-review.googlesource.com/258440
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'board/strago')
-rw-r--r-- | board/strago/board.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/strago/board.h b/board/strago/board.h index b67d2d2886..6f67928ed4 100644 --- a/board/strago/board.h +++ b/board/strago/board.h @@ -28,6 +28,8 @@ #define CONFIG_SPI_CS_GPIO GPIO_PVT_CS0 #define CONFIG_SPI_FLASH #define CONFIG_SPI_FLASH_SIZE 4194304 +/* TODO: Add flash protect support for the SPI part strago actually has */ +#define CONFIG_SPI_FLASH_W25Q64 /* Modules we want to exclude */ #undef CONFIG_EEPROM #undef CONFIG_EOPTION |