diff mbox

[U-Boot,v2,03/19] dm: Add Kconfig for driver/demo

Message ID 1423197710-1568-4-git-send-email-sjg@chromium.org
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass Feb. 6, 2015, 4:41 a.m. UTC
Add a suitable Kconfig for this directory.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v2:
- Split out patch to add Kconfig for driver/demo

 drivers/Kconfig      |  2 ++
 drivers/demo/Kconfig | 26 ++++++++++++++++++++++++++
 2 files changed, 28 insertions(+)
 create mode 100644 drivers/demo/Kconfig

Comments

Masahiro Yamada Feb. 9, 2015, 3:51 a.m. UTC | #1
On Thu,  5 Feb 2015 21:41:34 -0700
Simon Glass <sjg@chromium.org> wrote:

> Add a suitable Kconfig for this directory.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
> 
> Changes in v2:
> - Split out patch to add Kconfig for driver/demo


Reviewed-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Simon Glass Feb. 11, 2015, 7:45 p.m. UTC | #2
On 8 February 2015 at 20:51, Masahiro Yamada <yamada.m@jp.panasonic.com> wrote:
>
> On Thu,  5 Feb 2015 21:41:34 -0700
> Simon Glass <sjg@chromium.org> wrote:
>
>> Add a suitable Kconfig for this directory.
>>
>> Signed-off-by: Simon Glass <sjg@chromium.org>
>> ---
>>
>> Changes in v2:
>> - Split out patch to add Kconfig for driver/demo
>
>
> Reviewed-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
>
>
Applied to u-boot-dm.
diff mbox

Patch

diff --git a/drivers/Kconfig b/drivers/Kconfig
index 128736d..021293e 100644
--- a/drivers/Kconfig
+++ b/drivers/Kconfig
@@ -2,6 +2,8 @@  menu "Device Drivers"
 
 source "drivers/core/Kconfig"
 
+source "drivers/demo/Kconfig"
+
 source "drivers/pci/Kconfig"
 
 source "drivers/pcmcia/Kconfig"
diff --git a/drivers/demo/Kconfig b/drivers/demo/Kconfig
new file mode 100644
index 0000000..7a8ce18
--- /dev/null
+++ b/drivers/demo/Kconfig
@@ -0,0 +1,26 @@ 
+config DM_DEMO
+	bool "Enable demo uclass support"
+	depends on DM
+	help
+	  This uclass allows you to play around with driver model. It provides
+	  an interface to a couple of demo devices. You can access it using
+	  the 'demo' command or by calling the uclass functions from your
+	  own code.
+
+config DM_DEMO_SIMPLE
+	bool "Enable simple demo device for driver model"
+	depends on DM_DEMO
+	help
+	  This device allows you to play around with driver model. It prints
+	  a message when the 'demo hello' command is executed which targets
+	  this device. It can be used to help understand how driver model
+	  works.
+
+config DM_DEMO_SHAPE
+	bool "Enable shape demo device for driver model"
+	depends on DM_DEMO
+	help
+	  This device allows you to play around with driver model. It prints
+	  a shape when the 'demo hello' command is executed which targets
+	  this device. It can be used to help understand how driver model
+	  works.