public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] dm: core: Add Kconfig for simple bus driver
@ 2015-08-02 23:15 Marek Vasut
  2015-08-02 23:52 ` Simon Glass
  0 siblings, 1 reply; 20+ messages in thread
From: Marek Vasut @ 2015-08-02 23:15 UTC (permalink / raw)
  To: u-boot

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
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2015-08-30 22:42 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-02 23:15 [U-Boot] [PATCH] dm: core: Add Kconfig for simple bus driver Marek Vasut
2015-08-02 23:52 ` Simon Glass
2015-08-02 23:55   ` Marek Vasut
2015-08-02 23:58     ` Simon Glass
2015-08-10 13:39   ` Simon Glass
2015-08-10 13:57     ` Marek Vasut
2015-08-10 14:00       ` Simon Glass
2015-08-10 14:03         ` Marek Vasut
2015-08-22 13:40           ` Simon Glass
2015-08-22 15:50             ` Marek Vasut
2015-08-22 16:01               ` Simon Glass
2015-08-22 16:48                 ` Marek Vasut
2015-08-22 17:09                   ` Simon Glass
2015-08-23  1:12                     ` Marek Vasut
2015-08-23 21:21                       ` Simon Glass
2015-08-24  2:54                         ` Marek Vasut
2015-08-24 10:02                           ` Masahiro Yamada
2015-08-24 10:14                             ` Marek Vasut
2015-08-24 16:58                             ` Simon Glass
2015-08-30 22:42                               ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox