summaryrefslogtreecommitdiff
path: root/chip/npcx
diff options
context:
space:
mode:
authorCHLin <CHLin56@nuvoton.com>2020-09-28 14:17:45 +0800
committerCommit Bot <commit-bot@chromium.org>2020-10-07 05:16:40 +0000
commit247942fa7d1444bdbb7402d43cd1334ccf58cfeb (patch)
treebc3637f1921f7b70b690019ad38afe1e46caa7cb /chip/npcx
parentd9d6c27f1c765fdfc6b1f5714d0e57b3d895de44 (diff)
downloadchrome-ec-247942fa7d1444bdbb7402d43cd1334ccf58cfeb.tar.gz
npcx9_evb: add board to support the npcx9's EVB
Add board npcx9_evb to verify npcx9's functions. BRANCH=none BUG=b:165777478 TEST=pass "make buildall" TEST=Check EC firmware can boot up the EVB; verify the functionality of required modules (Ex: ADC/GPIO/KBC/I2C/PWM/FAN/PSL/UART.) Signed-off-by: CHLin <CHLin56@nuvoton.com> Change-Id: I40d69bc4e698a03dc2229bb2eaea8e25ca090867 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2435166 Tested-by: CH Lin <chlin56@nuvoton.com> Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: CH Lin <chlin56@nuvoton.com>
Diffstat (limited to 'chip/npcx')
-rw-r--r--chip/npcx/config_chip-npcx9.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chip/npcx/config_chip-npcx9.h b/chip/npcx/config_chip-npcx9.h
index 86e7ed5b85..9f7b0f52d0 100644
--- a/chip/npcx/config_chip-npcx9.h
+++ b/chip/npcx/config_chip-npcx9.h
@@ -97,4 +97,12 @@
# error "Unsupported chip variant"
#endif
+/* Internal spi-flash setting */
+#define CONFIG_SPI_FLASH_PORT 0
+#define CONFIG_SPI_FLASH
+#define CONFIG_SPI_FLASH_REGS
+#define CONFIG_SPI_FLASH_W25Q40 /* Internal spi flash type */
+#define CONFIG_FLASH_SIZE 0x00080000 /* 512 KB internal spi flash */
+
+
#endif /* __CROS_EC_CONFIG_CHIP_NPCX9_H */