Browse Source

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>
Masahiro Yamada 10 năm trước cách đây
mục cha
commit
da333ae73c
4 tập tin đã thay đổi với 24 bổ sung0 xóa
  1. 6 0
      drivers/core/Kconfig
  2. 6 0
      drivers/gpio/Kconfig
  3. 6 0
      drivers/serial/Kconfig
  4. 6 0
      drivers/spi/Kconfig

+ 6 - 0
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.

+ 6 - 0
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.

+ 6 - 0
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.

+ 6 - 0
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.