From 9e422c3c05fdd324565049b09be27c446f9dc0ca Mon Sep 17 00:00:00 2001 From: Yuval Peress Date: Thu, 14 Jan 2021 01:29:08 -0700 Subject: Refactor CONFIG_FLASH_SIZE to CONFIG_FLASH_SIZE_BYTES In Zephyr CONFIG_FLASH_SIZE is a Kconfig value that is used throughout. The issue is that the units don't match. In Zephyr the value is in KiB instead of bytes. This refactor simply renames CONFIG_FLASH_SIZE in platform/ec to include the unit (via _BYTES). BRANCH=none BUG=b:174873770 TEST=make buildall be generated by the build instead of per board Signed-off-by: Yuval Peress Change-Id: I44bf3c7a20fcf62aaa9ae15715be78db4210f384 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2627638 Reviewed-by: Jack Rosenthal Reviewed-by: Simon Glass Reviewed-by: Tom Hughes Commit-Queue: Jack Rosenthal --- board/cheza/board.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/cheza/board.h') diff --git a/board/cheza/board.h b/board/cheza/board.h index e0aa3cd061..f9fd3bff62 100644 --- a/board/cheza/board.h +++ b/board/cheza/board.h @@ -28,7 +28,7 @@ #define NPCX7_PWM1_SEL 0 /* GPIO C2 is not used as PWM1. */ /* Internal SPI flash on NPCX7 */ -#define CONFIG_FLASH_SIZE (1024 * 1024) /* 1MB internal spi flash */ +#define CONFIG_FLASH_SIZE_BYTES (1024 * 1024) /* 1MB internal spi flash */ #define CONFIG_SPI_FLASH_REGS #define CONFIG_SPI_FLASH_W25Q80 /* Internal SPI flash type. */ #define CONFIG_HOSTCMD_FLASH_SPI_INFO -- cgit v1.2.1