summaryrefslogtreecommitdiff
path: root/board/npcx_evb
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2015-03-10 11:50:39 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-03-11 23:18:09 +0000
commit27199e7b64659a2db7114c670b903578858f8d50 (patch)
tree71a7332d6b7bbbe3cd9c57ca21b1d736daff8f96 /board/npcx_evb
parentd32be0292f1e1aa389da579ea29f7a151ae002e1 (diff)
downloadchrome-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/npcx_evb')
-rw-r--r--board/npcx_evb/board.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/npcx_evb/board.h b/board/npcx_evb/board.h
index 1fde31633d..247333b5e2 100644
--- a/board/npcx_evb/board.h
+++ b/board/npcx_evb/board.h
@@ -20,6 +20,8 @@
/* Optional features */
#define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands for testing */
#define CONFIG_SPI_FLASH
+#define CONFIG_SPI_FLASH_SIZE 0x00800000 /* 8MB spi flash */
+#define CONFIG_SPI_FLASH_W25Q64
#define CONFIG_KEYBOARD_BOARD_CONFIG
#define CONFIG_KEYBOARD_PROTOCOL_8042
#define CONFIG_POWER_BUTTON
@@ -38,7 +40,6 @@
#define CONFIG_UART_HOST 0
#define CONFIG_FANS 1
-#define CONFIG_SPI_FLASH_SIZE 0x00800000 /* 8MB spi flash */
/* Optional feature - used by nuvoton */
#define CONFIG_PWM_INPUT_LFCLK /* PWM use LFCLK for input clock */