summaryrefslogtreecommitdiff
path: root/zephyr/drivers/cros_flash/Kconfig
diff options
context:
space:
mode:
authorMulin Chao <mlchao@nuvoton.com>2020-11-25 19:19:32 -0800
committerCommit Bot <commit-bot@chromium.org>2021-01-15 03:56:18 +0000
commitcdb35e70007bca553c6fcf6a88d02433bb0b4c5d (patch)
tree5dc3e8360dbe3804bed1e831abc85d3038255aa9 /zephyr/drivers/cros_flash/Kconfig
parentb33a27c9a667b692ac7cd52922df0b6dba70c64d (diff)
downloadchrome-ec-cdb35e70007bca553c6fcf6a88d02433bb0b4c5d.tar.gz
drivers: Add cros_flash driver for npcx chip
Add a driver that implements the cros_flash interface on the npcx chip. BUG=b:174874876 TEST=pass build with related patches. TEST=combine with related patches, use console commands to test all the implemented flash APIs. Change-Id: I435569928ead955079d8299d7d056894066b5929 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/zephyr-chrome/+/2598212 Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Commit-Queue: Simon Glass <sjg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2630167 Tested-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'zephyr/drivers/cros_flash/Kconfig')
-rw-r--r--zephyr/drivers/cros_flash/Kconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/zephyr/drivers/cros_flash/Kconfig b/zephyr/drivers/cros_flash/Kconfig
new file mode 100644
index 0000000000..e15848f4f6
--- /dev/null
+++ b/zephyr/drivers/cros_flash/Kconfig
@@ -0,0 +1,13 @@
+
+# Copyright 2020 Google LLC
+# SPDX-License-Identifier: Apache-2.0
+
+menuconfig CROS_FLASH_NPCX
+ bool "Nuvoton NPCX flash driver for the Zephyr shim"
+ depends on SOC_FAMILY_NPCX
+ default y
+ help
+ This option enables a flash unit interface (FIU) driver for the NPCX
+ chip. This is used instead of the flash memory interface so we can
+ continue to use most of the existing flash memory processing code in
+ ECOS.