]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
dm: Add CMD_DM and CMD_DEMO to Kconfig
authorSimon Glass <sjg@chromium.org>
Fri, 6 Feb 2015 04:41:38 +0000 (21:41 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 11:51:17 +0000 (13:51 +0200)
Add Kconfig settings for these two options.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
common/Kconfig
include/configs/sandbox.h
include/configs/sunxi-common.h
include/configs/ti_am335x_common.h
include/configs/uniphier.h

index da18c7ae779d545345ce29cb8cb69b1fbc4ae4e3..1f8d0374c312341b0d908d99eac2f1417c4be08a 100644 (file)
@@ -185,6 +185,29 @@ endmenu
 
 menu "Device access commands"
 
+config CMD_DM
+       bool "dm - Access to driver model information"
+       depends on DM
+       default y
+       help
+         Provides access to driver model data structures and information,
+         such as a list of devices, list of uclasses and the state of each
+         device (e.g. activated). This is not required for operation, but
+         can be useful to see the state of driver model for debugging or
+         interest.
+
+config CMD_DEMO
+       bool "demo - Demonstration commands for driver model"
+       depends on DM
+       help
+         Provides a 'demo' command which can be used to play around with
+         driver model. To use this properly you will need to enable one or
+         both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE).
+         Otherwise you will always get an empty list of devices. The demo
+         devices are defined in the sandbox device tree, so the easiest
+         option is to use sandbox and pass the -d point to sandbox's
+         u-boot.dtb file.
+
 config CMD_LOADB
        bool "loadb"
        default y
index e9d3f3226b373f078faaa2c6c5e34932a3729ee1..deff4d648c64dc1fe442ebf61ef06a3e69257a64 100644 (file)
@@ -24,7 +24,6 @@
 #define CONFIG_BOOTSTAGE
 #define CONFIG_BOOTSTAGE_REPORT
 #define CONFIG_CMD_DEMO
-#define CONFIG_CMD_DM
 #define CONFIG_DM_DEMO
 #define CONFIG_DM_DEMO_SIMPLE
 #define CONFIG_DM_DEMO_SHAPE
index cea52dbf7b7e396542af618bc754c486107c4382..325120da2e6e512dea0e9c7ae05092d193807ea4 100644 (file)
@@ -28,7 +28,6 @@
 #define CONFIG_SYS_TEXT_BASE           0x4a000000
 
 #if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_DM)
-# define CONFIG_CMD_DM
 # define CONFIG_DM_GPIO
 # define CONFIG_DM_SERIAL
 # define CONFIG_DW_SERIAL
index 598526bf95feb0709fdef7ad179838b0aabdf2a7..35332b5ed82929c646902c04f4bc14be134041ba 100644 (file)
@@ -23,7 +23,6 @@
 #ifndef CONFIG_DM
 # define CONFIG_DM
 #endif
-# define CONFIG_CMD_DM
 # define CONFIG_DM_GPIO
 # define CONFIG_DM_SERIAL
 # define CONFIG_OMAP_SERIAL
index 9420e6b48b80911f5e044bc4593af4054be40afd..6f4ecc9b04c6d3f6e2adebbefe2059a7ef2da56f 100644 (file)
 #define CONFIG_FAT_WRITE
 #define CONFIG_DOS_PARTITION
 
-#define CONFIG_CMD_DM
-
 /* memtest works on */
 #define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE
 #define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_SDRAM_BASE + 0x01000000)