summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-10-23 22:26:09 +0900
committerSimon Glass <sjg@chromium.org>2014-10-23 21:43:09 -0600
commitda333ae73cddf12e8f71a847e42a6571f9435d7c (patch)
tree1693f8347a90ac3e57393933e5852d7996462bb4
parenteea5a4cc1baa1b7f2697c4385aeae881430bff24 (diff)
downloadblackbird-obmc-uboot-da333ae73cddf12e8f71a847e42a6571f9435d7c.tar.gz
blackbird-obmc-uboot-da333ae73cddf12e8f71a847e42a6571f9435d7c.zip
dm: add entries to Kconfig
Create entries of CONFIG_DM, CONFIG_DM_SERIAL, CONFIG_DM_GPIO and CONFIG_DM_SPI. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Simon Glass <sjg@chromium.org>
-rw-r--r--drivers/core/Kconfig6
-rw-r--r--drivers/gpio/Kconfig6
-rw-r--r--drivers/serial/Kconfig6
-rw-r--r--drivers/spi/Kconfig6
4 files changed, 24 insertions, 0 deletions
diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig
index e69de29bb2..d2799dc861 100644
--- a/drivers/core/Kconfig
+++ b/drivers/core/Kconfig
@@ -0,0 +1,6 @@
+config DM
+ bool "Enable Driver Model"
+ depends on !SPL_BUILD
+ help
+ This config option enables Driver Model.
+ To use legacy drivers, say N.
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index e69de29bb2..d21302f8da 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -0,0 +1,6 @@
+config DM_GPIO
+ bool "Enable Driver Model for GPIO drivers"
+ depends on DM
+ help
+ If you want to use driver model for GPIO drivers, say Y.
+ To use legacy GPIO drivers, say N.
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig
index e69de29bb2..6a392ba24f 100644
--- a/drivers/serial/Kconfig
+++ b/drivers/serial/Kconfig
@@ -0,0 +1,6 @@
+config DM_SERIAL
+ bool "Enable Driver Model for serial drivers"
+ depends on DM
+ help
+ If you want to use driver model for serial drivers, say Y.
+ To use legacy serial drivers, say N.
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index e69de29bb2..e1678e63e6 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -0,0 +1,6 @@
+config DM_SPI
+ bool "Enable Driver Model for SPI drivers"
+ depends on DM
+ help
+ If you want to use driver model for SPI drivers, say Y.
+ To use legacy SPI drivers, say N.
OpenPOWER on IntegriCloud