summaryrefslogtreecommitdiff
path: root/zephyr/projects/trogdor
diff options
context:
space:
mode:
authorWealian Liao <whliao@nuvoton.corp-partner.google.com>2021-05-03 18:34:31 +0800
committerCommit Bot <commit-bot@chromium.org>2021-05-19 19:29:49 +0000
commit31dc11d5778645e974ebd1e75123c465ca411609 (patch)
treeae583d1137e4cbe1d297f5a107d4327b7c1cb87d /zephyr/projects/trogdor
parente19a8e92bcf167385f46270b486ff2179ed891f4 (diff)
downloadchrome-ec-31dc11d5778645e974ebd1e75123c465ca411609.tar.gz
zephyr: npcx: Move ecst configuration options to upstream
NPCX series ROM code changes the chip basic setting by firmware binary header for loading the firmware from flash to RAM. All the NPCX series chips could use it, so those configuration options are moved to upstream. The ecst chip version automatic select by CONFIG_SOC_NPCX7MNX. Currently, the project setting doesn't set to the expected chip part number. Change the following project to select the target chip & configure ecst header: - volteer: npcx7m7fc - trogdor: npcx7m6fc - kohaku: npcx7m6fc BUG=b:184448653 BRANCH=none TEST=zmake testall TEST=volteer boot to OS Cq-Depend: chromium:2872415 Signed-off-by: Yuval Peress <peress@chromium.org> Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com> Change-Id: Ieed6c21536401f70950ddd1f18d243b127d896ed Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2867128 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org> Tested-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/projects/trogdor')
-rw-r--r--zephyr/projects/trogdor/boards/arm/trogdor/board.cmake2
-rw-r--r--zephyr/projects/trogdor/boards/arm/trogdor/trogdor_defconfig6
2 files changed, 7 insertions, 1 deletions
diff --git a/zephyr/projects/trogdor/boards/arm/trogdor/board.cmake b/zephyr/projects/trogdor/boards/arm/trogdor/board.cmake
index 3ce47418ca..fd6fcd0656 100644
--- a/zephyr/projects/trogdor/boards/arm/trogdor/board.cmake
+++ b/zephyr/projects/trogdor/boards/arm/trogdor/board.cmake
@@ -2,4 +2,4 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-set(ECST_CHIP_ARG npcx7m6)
+set(NPCX_IMAGE_FILE ${PROJECT_BINARY_DIR}/zephyr.packed.bin)
diff --git a/zephyr/projects/trogdor/boards/arm/trogdor/trogdor_defconfig b/zephyr/projects/trogdor/boards/arm/trogdor/trogdor_defconfig
index b003216344..869f4b7c27 100644
--- a/zephyr/projects/trogdor/boards/arm/trogdor/trogdor_defconfig
+++ b/zephyr/projects/trogdor/boards/arm/trogdor/trogdor_defconfig
@@ -9,6 +9,12 @@ CONFIG_SOC_SERIES_NPCX7=y
CONFIG_SOC_NPCX7M6FC=y
CONFIG_BOARD_TROGDOR=y
+# Enable NPCX firmware header generator
+CONFIG_NPCX_HEADER=y
+CONFIG_NPCX_HEADER_SPI_MAX_CLOCK_50=y
+CONFIG_NPCX_HEADER_SPI_READ_MODE_DUAL=y
+CONFIG_NPCX_HEADER_CORE_CLOCK_SPI_CLOCK_RATIO_2=y
+
# Serial Drivers
CONFIG_SERIAL=y
CONFIG_UART_INTERRUPT_DRIVEN=y