summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.flash
diff options
context:
space:
mode:
authormartin yan <martin.yan@microchip.corp-partner.google.com>2022-01-14 11:04:50 -0500
committerCommit Bot <commit-bot@chromium.org>2022-01-24 20:12:52 +0000
commit294e26a203fb74d2a3a3218279b6e18ca22780be (patch)
tree62ee3de9a81598a226bb76409e309f8c7c1142c7 /zephyr/Kconfig.flash
parent96525123ba63b081f0855197961f8029539b937b (diff)
downloadchrome-ec-294e26a203fb74d2a3a3218279b6e18ca22780be.tar.gz
zephyr: mchp: Add cros_flash driver
Add cros_flash driver and related configs BUG=none BRANCH=main TEST=zmake testall Signed-off-by: martin yan <martin.yan@microchip.corp-partner.google.com> Change-Id: I4b8aadf5820871e0abcff0306eefae634a4ee8df Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3388451 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/Kconfig.flash')
-rw-r--r--zephyr/Kconfig.flash2
1 files changed, 2 insertions, 0 deletions
diff --git a/zephyr/Kconfig.flash b/zephyr/Kconfig.flash
index f6a8b2d103..0e0fd6ce49 100644
--- a/zephyr/Kconfig.flash
+++ b/zephyr/Kconfig.flash
@@ -6,6 +6,7 @@ if PLATFORM_EC_FLASH_CROS
config PLATFORM_EC_SPI_FLASH_REGS
bool "Enable SPI flash registers"
+ default y if SOC_FAMILY_MEC
default y if SOC_FAMILY_NPCX
help
Enables flash registers for SPI flash (both internal and external).
@@ -64,6 +65,7 @@ config PLATFORM_EC_CONSOLE_CMD_SYSJUMP
choice PLATFORM_EC_STORAGE_TYPE
prompt "Code storage type"
default PLATFORM_EC_EXTERNAL_STORAGE if SOC_FAMILY_NPCX
+ default PLATFORM_EC_EXTERNAL_STORAGE if SOC_FAMILY_MEC
default PLATFORM_EC_INTERNAL_STORAGE if SOC_FAMILY_RISCV_ITE
help
Sets the EC code storage type.