dm: MIGRATION: Add migration plan for CONFIG_DM
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Mon, 16 Sep 2019 16:41:42 +0000 (18:41 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 19 Sep 2019 16:54:30 +0000 (12:54 -0400)
For many sub-systems we already require the driver model to be used. Yet
there is still a handful of boards that do not have CONFIG_DM enabled.

We should make CONFIG_DM compulsory with release v2020.01

Conversion dates for CONFIG_DM_SPL and CONFIG_DM_TPL are yet to be defined.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Makefile
doc/driver-model/migration.rst

index 57d070022739f790208b7063ed7c1fae916ea928..ffc2c4b3e42ff39831b9521eeb157a90c34f83f4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -940,6 +940,14 @@ ifneq ($(CONFIG_DM_SPI)$(CONFIG_OF_CONTROL),yy)
 endif
 endif
 endif
 endif
 endif
 endif
+ifneq ($(CONFIG_DM),y)
+       @echo >&2 "===================== WARNING ======================"
+       @echo >&2 "This board does not use CONFIG_DM. CONFIG_DM will be"
+       @echo >&2 "compulsory starting with the v2020.01 release."
+       @echo >&2 "Failure to update may result in board removal."
+       @echo >&2 "See doc/driver-model/migration.rst for more info."
+       @echo >&2 "===================================================="
+endif
 ifeq ($(CONFIG_MMC),y)
 ifneq ($(CONFIG_DM_MMC)$(CONFIG_OF_CONTROL)$(CONFIG_BLK),yyy)
        @echo >&2 "===================== WARNING ======================"
 ifeq ($(CONFIG_MMC),y)
 ifneq ($(CONFIG_DM_MMC)$(CONFIG_OF_CONTROL)$(CONFIG_BLK),yyy)
        @echo >&2 "===================== WARNING ======================"
index fd499fb74a84b9546138c84f5ad641c30367d256..d1fc0e6a782986fe2edd19f2e6e3cd88abb11c01 100644 (file)
@@ -7,6 +7,16 @@ U-Boot has been migrating to a new driver model since its introduction in
 2014. This file describes the schedule for deprecation of pre-driver-model
 features.
 
 2014. This file describes the schedule for deprecation of pre-driver-model
 features.
 
+CONFIG_DM
+---------
+
+* Status: In progress
+* Deadline: 2020.01
+
+Starting with the 2010.01 release CONFIG_DM will be enabled for all boards.
+This does not concern CONFIG_DM_SPL and CONFIG_DM_TPL. The conversion date for
+these configuration items still needs to be defined.
+
 CONFIG_DM_MMC
 -------------
 
 CONFIG_DM_MMC
 -------------