aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-02-20 20:06:34 -0500
committerTom Rini <trini@konsulko.com>2021-04-20 10:25:39 -0400
commit8cfdb4cc5e347a6cfd54093c81d31469f615535f (patch)
tree3fa0c9c45bf5992599959e310f087670feb69825
parentaaa3dd9c5d8d7da067ec213fa7521e9ccab6e6cf (diff)
downloadu-boot-WIP/2021-04-20-enforce-migrations.zip
u-boot-WIP/2021-04-20-enforce-migrations.tar.gz
u-boot-WIP/2021-04-20-enforce-migrations.tar.bz2
DM: DM_MMC migration is now mandatory for non-SPLWIP/2021-04-20-enforce-migrations
As it has been now two years past the migration deadline, it is required to have migrated. Remove the check from the Makefile and rework some of the Kconfig logic slightly to get the functional dependencies of DM_MMC / BLK right in both the SPL and non-SPL case. Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r--Makefile1
-rw-r--r--drivers/block/Kconfig2
-rw-r--r--drivers/mmc/Kconfig4
3 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 68dba4c..68394ab 100644
--- a/Makefile
+++ b/Makefile
@@ -1086,7 +1086,6 @@ ifneq ($(CONFIG_DM),y)
@echo >&2 "See doc/driver-model/migration.rst for more info."
@echo >&2 "===================================================="
endif
- $(call deprecated,CONFIG_DM_MMC CONFIG_BLK,MMC,v2019.04,$(CONFIG_MMC))
$(call deprecated,CONFIG_DM_USB CONFIG_OF_CONTROL CONFIG_BLK,\
USB,v2019.07,$(CONFIG_USB))
$(call deprecated,CONFIG_DM_PCI,PCI,v2019.07,$(CONFIG_PCI))
diff --git a/drivers/block/Kconfig b/drivers/block/Kconfig
index 1e6dad8..ebc638c 100644
--- a/drivers/block/Kconfig
+++ b/drivers/block/Kconfig
@@ -18,7 +18,7 @@ config HAVE_BLOCK_DEVICE
config SPL_BLK
bool "Support block devices in SPL"
depends on SPL_DM && BLK
- default y
+ default y if SPL_DM_MMC
help
Enable support for block devices, such as SCSI, MMC and USB
flash sticks. These provide a block-level interface which permits
diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig
index d862d1e..1da38be 100644
--- a/drivers/mmc/Kconfig
+++ b/drivers/mmc/Kconfig
@@ -4,6 +4,7 @@ config MMC
bool "MMC/SD/SDIO card support"
default ARM || PPC || SANDBOX
select HAVE_BLOCK_DEVICE
+ select DM_MMC if DM
help
This selects MultiMediaCard, Secure Digital and Secure
Digital I/O support.
@@ -33,6 +34,7 @@ config MMC_BROKEN_CD
config DM_MMC
bool "Enable MMC controllers using Driver Model"
depends on DM
+ select BLK
help
This enables the MultiMediaCard (MMC) uclass which supports MMC and
Secure Digital I/O (SDIO) cards. Both removable (SD, micro-SD, etc.)
@@ -42,7 +44,7 @@ config DM_MMC
config SPL_DM_MMC
bool "Enable MMC controllers using Driver Model in SPL"
- depends on SPL_DM && DM_MMC
+ depends on SPL_DM && DM_MMC && SPL_OF_LIBFDT
default y
help
This enables the MultiMediaCard (MMC) uclass which supports MMC and