From 4e074a16c5703f0cdd7b7d780a8ae1bea53a445a Mon Sep 17 00:00:00 2001 From: Eric Yilun Lin Date: Fri, 9 Apr 2021 15:55:35 +0800 Subject: config: rename CONFIG_FLASH to CONFIG_FLASH_CROS The config name collides with the same config name in zephyr. Also, renames zephyr Kconfig CONFIG_PLATFORM_EC_FLASH to CONFIG_PLATFORM_EC_FLASH_CROS as the corresponding change at Kconfig side. BUG=b:180980668 TEST=make buildall BRANCH=none Change-Id: Ibac008ddff8c041aae04dca0bbf973823abe7640 Signed-off-by: Eric Yilun Lin Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2816622 Tested-by: Eric Yilun Lin Reviewed-by: Keith Short Commit-Queue: Keith Short --- zephyr/CMakeLists.txt | 2 +- zephyr/Kconfig | 2 +- zephyr/Kconfig.flash | 4 ++-- zephyr/shim/include/config_chip.h | 6 +++--- zephyr/shim/src/CMakeLists.txt | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) (limited to 'zephyr') diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index a0c03874d9..95bf2046ea 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -267,7 +267,7 @@ zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_EXTPOWER_GPIO "${PLATFORM_EC}/common/extpower_gpio.c") zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_FAN "${PLATFORM_EC}/common/fan.c") -zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_FLASH +zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_FLASH_CROS "${PLATFORM_EC}/common/flash.c" "${PLATFORM_EC}/common/spi_flash_reg.c") zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_HOSTCMD diff --git a/zephyr/Kconfig b/zephyr/Kconfig index 191f49ace4..358ac691f1 100644 --- a/zephyr/Kconfig +++ b/zephyr/Kconfig @@ -265,7 +265,7 @@ config PLATFORM_EC_EXTPOWER_GPIO project should define a GPIO pin named GPIO_AC_PRESENT, with extpower_interrupt configured as the handler in gpio_map.h. -config PLATFORM_EC_FLASH +config PLATFORM_EC_FLASH_CROS bool "Enable flash support" default y if FLASH_SIZE > 0 help diff --git a/zephyr/Kconfig.flash b/zephyr/Kconfig.flash index 74ec9521ed..e79732d928 100644 --- a/zephyr/Kconfig.flash +++ b/zephyr/Kconfig.flash @@ -2,7 +2,7 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -if PLATFORM_EC_FLASH +if PLATFORM_EC_FLASH_CROS config PLATFORM_EC_SPI_FLASH_REGS bool "Enable SPI flash registers" @@ -110,4 +110,4 @@ config PLATFORM_EC_MAPPED_STORAGE If this is not defined, the flash driver must implement flash_physical_read(). -endif # PLATFORM_EC_FLASH +endif # PLATFORM_EC_FLASH_CROS diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h index c83d9f89eb..7e79ddf4b1 100644 --- a/zephyr/shim/include/config_chip.h +++ b/zephyr/shim/include/config_chip.h @@ -288,8 +288,8 @@ #undef CONFIG_MAPPED_STORAGE #undef CONFIG_FLASH_PSTATE #undef CONFIG_FLASH_SIZE_BYTES -#ifdef CONFIG_PLATFORM_EC_FLASH -#define CONFIG_FLASH +#ifdef CONFIG_PLATFORM_EC_FLASH_CROS +#define CONFIG_FLASH_CROS #define CONFIG_SPI_FLASH_W25Q80 /* Internal SPI flash type. */ #ifdef CONFIG_FLASH_SIZE #define CONFIG_FLASH_SIZE_BYTES (CONFIG_FLASH_SIZE * 1024) @@ -337,7 +337,7 @@ #define CONFIG_CMD_FLASH_WP #endif -#endif /* CONFIG_PLATFORM_EC_FLASH */ +#endif /* CONFIG_PLATFORM_EC_FLASH_CROS */ #undef CONFIG_ADC #ifdef CONFIG_PLATFORM_EC_ADC diff --git a/zephyr/shim/src/CMakeLists.txt b/zephyr/shim/src/CMakeLists.txt index ce4ed14323..439ea374de 100644 --- a/zephyr/shim/src/CMakeLists.txt +++ b/zephyr/shim/src/CMakeLists.txt @@ -18,7 +18,7 @@ zephyr_library_sources_ifdef(no_libgcc libgcc_${ARCH}.S) zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_ADC adc.c) zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_ESPI espi.c) zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_FAN fan.c) -zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_FLASH flash.c) +zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_FLASH_CROS flash.c) zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_HOOKS hooks.c) zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_HOSTCMD host_command.c) zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_HOSTCMD_CONSOLE -- cgit v1.2.1