aboutsummaryrefslogtreecommitdiff
path: root/include/configs/salvator-x.h
diff options
context:
space:
mode:
authorPatrick Delaunay2022-01-04 14:23:59 +0100
committerTom Rini2022-01-21 14:01:35 -0500
commit144fef87df7cf29b1ce772a73009e7c16908812b (patch)
tree302ae270518ee8c9c987e654536420085737048a /include/configs/salvator-x.h
parent98150e7e8c78b851a7710e18b156f279f8485cbe (diff)
mtd: cfi: change CONFIG_SYS_MAX_FLASH_BANKS_DETECT as boolean
Prepare migration to Kconfig. CONFIG_SYS_MAX_FLASH_BANKS_DETECT becomes boolean and CONFIG_SYS_MAX_FLASH_BANKS define the MAX size, also used for detection when CONFIG_SYS_MAX_FLASH_BANKS_DETECT=y (CFI_MAX_FLASH_BANKS = CONFIG_SYS_MAX_FLASH_BANKS). CONFIG_SYS_MAX_FLASH_BANKS become mandatory when CONFIG_SYS_MAX_FLASH_BANKS_DETECT is activated. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/configs/salvator-x.h')
-rw-r--r--include/configs/salvator-x.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/configs/salvator-x.h b/include/configs/salvator-x.h
index c29b34e231a..da3e2c88568 100644
--- a/include/configs/salvator-x.h
+++ b/include/configs/salvator-x.h
@@ -24,7 +24,8 @@
#define CONFIG_SYS_FLASH_QUIET_TEST
#define CONFIG_SYS_FLASH_BANKS_LIST { 0x08000000 }
#define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT
-#define CONFIG_SYS_MAX_FLASH_BANKS_DETECT 1
+#define CONFIG_SYS_MAX_FLASH_BANKS 1
+#define CONFIG_SYS_MAX_FLASH_BANKS_DETECT
#define CONFIG_SYS_MAX_FLASH_SECT 256
#define CONFIG_SYS_WRITE_SWAPPED_DATA