
Add Kconfig entries for the simple-bus driver, both for U-Boot and for SPL. The simple-bus is enabled by default in U-Boot and disabled by default in SPL to preserve the original behavior.
Signed-off-by: Marek Vasut marex@denx.de Cc: Simon Glass sjg@chromium.org --- drivers/core/Kconfig | 15 +++++++++++++++ drivers/core/Makefile | 5 ++--- 2 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig index e40372d..3403d1f 100644 --- a/drivers/core/Kconfig +++ b/drivers/core/Kconfig @@ -59,3 +59,18 @@ config DM_SEQ_ALIAS Most boards will have a '/aliases' node containing the path to numbered devices (e.g. serial0 = &serial0). This feature can be disabled if it is not required, to save code space in SPL. + +config SIMPLE_BUS + bool "Support simple-bus driver" + depends on DM && OF_CONTROL + default y + help + Supports the 'simple-bus' driver, which is used on some systems. + +config SPL_SIMPLE_BUS + bool "Support simple-bus driver in SPL" + depends on SPL_DM && OF_CONTROL + default n + help + Supports the 'simple-bus' driver, which is used on some systems + in SPL. diff --git a/drivers/core/Makefile b/drivers/core/Makefile index 5c2ead8..74588b1 100644 --- a/drivers/core/Makefile +++ b/drivers/core/Makefile @@ -5,9 +5,8 @@ #
obj-y += device.o lists.o root.o uclass.o util.o -ifndef CONFIG_SPL_BUILD -obj-$(CONFIG_OF_CONTROL) += simple-bus.o -endif +obj-$(CONFIG_SIMPLE_BUS) += simple-bus.o +obj-$(CONFIG_SPL_SIMPLE_BUS) += simple-bus.o obj-$(CONFIG_DM_DEVICE_REMOVE) += device-remove.o obj-$(CONFIG_DM) += dump.o obj-$(CONFIG_OF_CONTROL) += regmap.o