diff options
author | Wealian Liao <whliao@nuvoton.corp-partner.google.com> | 2021-05-03 18:34:31 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-05-19 19:29:49 +0000 |
commit | 31dc11d5778645e974ebd1e75123c465ca411609 (patch) | |
tree | ae583d1137e4cbe1d297f5a107d4327b7c1cb87d /zephyr/Kconfig.header | |
parent | e19a8e92bcf167385f46270b486ff2179ed891f4 (diff) | |
download | chrome-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/Kconfig.header')
-rw-r--r-- | zephyr/Kconfig.header | 77 |
1 files changed, 3 insertions, 74 deletions
diff --git a/zephyr/Kconfig.header b/zephyr/Kconfig.header index db5bd6ba76..3fc8181c9f 100644 --- a/zephyr/Kconfig.header +++ b/zephyr/Kconfig.header @@ -17,86 +17,15 @@ config PLATFORM_EC_RO_HEADER config PLATFORM_EC_RO_HEADER_OFFSET hex "Offset in memory for the location of the header" default 0x0 + depends on PLATFORM_EC_RO_HEADER help The offset (in bytes) of the header relative to the start address of the RO image. config PLATFORM_EC_RO_HEADER_SIZE hex "Size of the RO header" - default 0x40 + default 0x40 if SOC_FAMILY_NPCX + depends on PLATFORM_EC_RO_HEADER help The size of the RO header in bytes. This values should come from the datasheet of the chip being used. - -config PLATFORM_EC_RO_HEADER_ENABLE_HEADER_CRC - bool "Enable header crc check" - help - When enabled, the header will be verified at boot using a crc - checksum. - -config PLATFORM_EC_RO_HEADER_ENABLE_FIRMWARE_CRC - bool "Enable firmware image crc check" - help - When enabled, the firmware image will be verified at boot using a - crc checksum. - -choice "core clock to SPI flash clock ratio" - prompt "The clock ratio between the core clock and the SPI clock" - default PLATFORM_EC_RO_HEADER_CORE_CLOCK_SPI_CLOCK_RATIO_1 - help - This sets the clock ratio (core clock / SPI clock) - -config PLATFORM_EC_RO_HEADER_CORE_CLOCK_SPI_CLOCK_RATIO_1 - bool "SPI flash will operate with normal reading mode" - help - The SPI flash clock has the same frequency as the core clock. - -config PLATFORM_EC_RO_HEADER_CORE_CLOCK_SPI_CLOCK_RATIO_2 - bool "SPI flash will operate with fast reading mode" - help - The core clock frequency is twice the flash clock frequency. - -endchoice # core clock to SPI flash clock ratio - -choice "SPI flash max clock rate" - prompt "Clock rate to use for SPI flash" - help - This selects the max clock rate (one of 20, 25, 33, 40, or 50 MHz) - that will be used for the SPI flash. - -config PLATFORM_EC_RO_HEADER_SPI_MAX_CLOCK_20 - bool "SPI flash max clock rate of 20 MHz" - -config PLATFORM_EC_RO_HEADER_SPI_MAX_CLOCK_25 - bool "SPI flash max clock rate of 25 MHz" - -config PLATFORM_EC_RO_HEADER_SPI_MAX_CLOCK_33 - bool "SPI flash max clock rate of 33 MHz" - -config PLATFORM_EC_RO_HEADER_SPI_MAX_CLOCK_40 - bool "SPI flash max clock rate of 40 MHz" - -config PLATFORM_EC_RO_HEADER_SPI_MAX_CLOCK_50 - bool "SPI flash max clock rate of 50 MHz" - -endchoice # SPI flash max clock rate - -choice "SPI flash reading mode" - prompt "Reading mode used by the SPI flash" - help - This will set the reading mode that can be used by the SPI flash. - Reading modes supported are normal, fast, dual, and quad. - -config PLATFORM_EC_RO_HEADER_SPI_READ_MODE_NORMAL - bool "SPI flash will operate with normal reading mode" - -config PLATFORM_EC_RO_HEADER_SPI_READ_MODE_FAST - bool "SPI flash will operate with fast reading mode" - -config PLATFORM_EC_RO_HEADER_SPI_READ_MODE_DUAL - bool "SPI flash will operate with dual reading mode" - -config PLATFORM_EC_RO_HEADER_SPI_READ_MODE_QUAD - bool "SPI flash will operate with quad reading mode" - -endchoice # SPI flash reading mode |