Move most CONFIG_HAVE_BLOCK_DEVICE to Kconfig
config_fallbacks.h has some logic that sets HAVE_BLOCK_DEVICE
based on a list of enabled options. Moving HAVE_BLOCK_DEVICE to
Kconfig allows us to drastically shrink the logic in
config_fallbacks.h
Signed-off-by: Adam Ford <aford173@gmail.com>
[trini: Rename HAVE_BLOCK_DEVICE to CONFIG_BLOCK_DEVICE]
Signed-off-by: Tom Rini <trini@konsulko.com>
diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig
index e2c80f2..73836ad 100644
--- a/drivers/block/Kconfig
+++ b/drivers/block/Kconfig
@@ -10,6 +10,11 @@
be partitioned into several areas, called 'partitions' in U-Boot.
A filesystem can be placed in each partition.
+config HAVE_BLOCK_DEVICE
+ bool "Enable Legacy Block Device"
+ help
+ Some devices require block support whether or not DM is enabled
+
config SPL_BLK
bool "Support block devices in SPL"
depends on SPL_DM && BLK
@@ -33,6 +38,7 @@
config IDE
bool "Support IDE controllers"
+ select HAVE_BLOCK_DEVICE
help
Enables support for IDE (Integrated Drive Electronics) hard drives.
This allows access to raw blocks and filesystems on an IDE drive
@@ -41,6 +47,7 @@
config SYSTEMACE
bool "Xilinx SystemACE support"
+ select HAVE_BLOCK_DEVICE
help
Adding this option adds support for Xilinx SystemACE chips attached
via some sort of local bus. The address of the chip must also be