diff options
author | Wealian Liao <whliao@nuvoton.corp-partner.google.com> | 2022-01-27 11:12:17 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-02-08 07:14:46 +0000 |
commit | 0c24ea017ba622ee2cf53a47e1cd27e313124438 (patch) | |
tree | 60612539df717892ab08adae27782e209429a9ce /zephyr/Kconfig | |
parent | edbca223efd0bdc6c734735430144e95024dd4d0 (diff) | |
download | chrome-ec-0c24ea017ba622ee2cf53a47e1cd27e313124438.tar.gz |
zephyr: npcx: Fix code RAM size check
On zephyr upstream, NPCX series map code RAM to flash0. Zephyr uses
CONFIG_FLASH_SIZE for the code RAM size. However, this is overridden by
Kconfig. This removes CONFIG_FLASH_SIZE in the cros repo. For the
zmake, change to use CONFIG_FLASH_SIZE_BYTES for flash size check.
BUG=b:216385443
BRANCH=none
TEST=linker show the error for the code RAM size out of range
TEST="zmake testall --clobber"
Signed-off-by: Wealian Liao <whliao@nuvoton.corp-partner.google.com>
Change-Id: I0942f18bd3b145c4d35eb15a44169f217496a6a6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3419936
Tested-by: CH Lin <chlin56@nuvoton.com>
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Commit-Queue: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'zephyr/Kconfig')
-rw-r--r-- | zephyr/Kconfig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/zephyr/Kconfig b/zephyr/Kconfig index ce250f0a32..59cb47cc4d 100644 --- a/zephyr/Kconfig +++ b/zephyr/Kconfig @@ -367,8 +367,7 @@ config PLATFORM_EC_EXTPOWER_GPIO extpower_interrupt configured as the handler in gpio_map.h. config PLATFORM_EC_FLASH_CROS - bool "Enable flash support" - default y if FLASH_SIZE > 0 + bool help Enables access to the device's flash through a simple API. With this is it possible for the EC to update its flash while running, |