summaryrefslogtreecommitdiff
path: root/zephyr/app
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2021-07-14 13:52:42 -0700
committerCommit Bot <commit-bot@chromium.org>2021-07-15 22:50:42 +0000
commit61ab7944fb31009f15531dac74393b0e50764c69 (patch)
tree1ae5b58f41af68299d9e08a32c4c893ac9446dc3 /zephyr/app
parentafcca55528b45fccec91db1b87fd8c458c6ca825 (diff)
downloadchrome-ec-61ab7944fb31009f15531dac74393b0e50764c69.tar.gz
zephyr: npcx: Default the NPCX header generator in Kconfig.npcx
The NPCX header generator configs are duplicated on multiple projects. Move them to the default in Kconfig.npcx. BRANCH=None BUG=b:192253134 TEST=Built the brya, kohaku, lazor, volteer, asurada, and posix-ec images. Booted the lazor image on Lazor board. Change-Id: I560434473d76ba67fc089ead4ab39efbb5ab6703 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3029002 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/app')
-rw-r--r--zephyr/app/ec/chip/arm/nuvoton_npcx/Kconfig.npcx13
1 files changed, 13 insertions, 0 deletions
diff --git a/zephyr/app/ec/chip/arm/nuvoton_npcx/Kconfig.npcx b/zephyr/app/ec/chip/arm/nuvoton_npcx/Kconfig.npcx
index b4a7c36a3d..e2490836d1 100644
--- a/zephyr/app/ec/chip/arm/nuvoton_npcx/Kconfig.npcx
+++ b/zephyr/app/ec/chip/arm/nuvoton_npcx/Kconfig.npcx
@@ -8,6 +8,19 @@
if SOC_FAMILY_NPCX
+# Enable NPCX firmware header generator
+config NPCX_HEADER
+ default y
+
+config NPCX_HEADER_SPI_MAX_CLOCK
+ default 50
+
+config NPCX_HEADER_SPI_READ_MODE
+ default "dual"
+
+config NPCX_HEADER_CORE_CLOCK_SPI_CLOCK_RATIO
+ default 2
+
# ADC
# The resolution and oversamplig values are fixed by the NPCX ADC driver
config PLATFORM_EC_ADC_RESOLUTION