diff mbox series

[10/20] Convert CONFIG_FLASH_CFI_LEGACY to Kconfig

Message ID 20220723170512.1472738-10-trini@konsulko.com
State Accepted
Commit 1d3ecdac7ecd5d9b237067b0c96aa1e618c8621d
Delegated to: Tom Rini
Headers show
Series [01/20] sh: Remove unused code in arch/sh/lib/bootm.c | expand

Commit Message

Tom Rini July 23, 2022, 5:05 p.m. UTC
This converts the following to Kconfig:
   CONFIG_FLASH_CFI_LEGACY

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 board/freescale/m5253demo/Kconfig | 4 ++++
 include/configs/M5253DEMO.h       | 1 -
 2 files changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/board/freescale/m5253demo/Kconfig b/board/freescale/m5253demo/Kconfig
index 303d29bc23a2..0ecce875d149 100644
--- a/board/freescale/m5253demo/Kconfig
+++ b/board/freescale/m5253demo/Kconfig
@@ -1,5 +1,9 @@ 
 if TARGET_M5253DEMO
 
+config FLASH_CFI_LEGACY
+	depends on SYS_FLASH_CFI
+	def_bool y
+
 config SYS_CPU
 	default "mcf52x2"
 
diff --git a/include/configs/M5253DEMO.h b/include/configs/M5253DEMO.h
index 88c2bbbf25f2..b88280c90cdf 100644
--- a/include/configs/M5253DEMO.h
+++ b/include/configs/M5253DEMO.h
@@ -105,7 +105,6 @@ 
  * 0x30 is block erase in SST
  */
 #	define CONFIG_SYS_FLASH_SIZE		0x800000
-#	define CONFIG_FLASH_CFI_LEGACY
 #else
 #	define CONFIG_SYS_SST_SECT		2048
 #	define CONFIG_SYS_SST_SECTSZ		0x1000