]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
dm: Expand and complete Kconfig in drivers/
authorSimon Glass <sjg@chromium.org>
Fri, 6 Feb 2015 04:41:35 +0000 (21:41 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 11:51:17 +0000 (13:51 +0200)
Expand the help messages for each driver. Add missing Kconfig for I2C,
SPI flash and thermal.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
doc/driver-model/spi-howto.txt
drivers/Kconfig
drivers/core/Kconfig
drivers/gpio/Kconfig
drivers/i2c/Kconfig
drivers/misc/Kconfig
drivers/mtd/Kconfig
drivers/mtd/spi/Kconfig [new file with mode: 0644]
drivers/serial/Kconfig
drivers/spi/Kconfig
drivers/thermal/Kconfig [new file with mode: 0644]

index 5bc29ad65ce145b7dbea4fb7fbd4928e8b7395e6..ee4abf4a8b49cc8b8ab2de8521fe91522afb3e14 100644 (file)
@@ -40,8 +40,8 @@ with only minor changes:
 
 Add these to your board config:
 
-#define CONFIG_DM_SPI
-#define CONFIG_DM_SPI_FLASH
+CONFIG_DM_SPI
+CONFIG_DM_SPI_FLASH
 
 
 2. Add the skeleton
index 021293e798d33e1b9e3b5240e338b5e709e606db..dcce532e2df200ed4f82a4c45f0e14982ee26d1a 100644 (file)
@@ -50,4 +50,6 @@ source "drivers/dma/Kconfig"
 
 source "drivers/crypto/Kconfig"
 
+source "drivers/thermal/Kconfig"
+
 endmenu
index d2799dc861ff5a661ff6717c985285f263ebd1e9..dc32385e85492a7ab5a8f56539ed073061257d5d 100644 (file)
@@ -2,5 +2,7 @@ config DM
        bool "Enable Driver Model"
        depends on !SPL_BUILD
        help
-         This config option enables Driver Model.
-         To use legacy drivers, say N.
+         This config option enables Driver Model. This brings in the core
+         support, including scanning of platform data on start-up. If
+         CONFIG_OF_CONTROL is enabled, the device tree will be scanned also
+         when available.
index d21302f8da95316cdf7891556a73bb0de576b8e1..b609e73bbaf5fe4993b6a560ef9101c4363ec5e2 100644 (file)
@@ -2,5 +2,8 @@ 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.
+         Enable driver model for GPIO access. The standard GPIO
+         interface (gpio_get_value(), etc.) is then implemented by
+         the GPIO uclass. Drivers provide methods to query the
+         particular GPIOs that they provide. The uclass interface
+         is defined in include/asm-generic/gpio.h.
index c3e8d226ac4cca170e8d69447e905acc841e9b37..e30cce828816e683eb11a1160df36c0434d8837d 100644 (file)
@@ -2,8 +2,16 @@ config DM_I2C
        bool "Enable Driver Model for I2C drivers"
        depends on DM
        help
-         If you want to use driver model for I2C drivers, say Y.
-         To use legacy I2C drivers, say N.
+         Enable driver model for I2C. This SPI flash interface
+         (spi_flash_probe(), spi_flash_write(), etc.) is then
+         implemented by the SPI flash uclass. There is one standard
+         SPI flash driver which knows how to probe most chips
+         supported by U-Boot. The uclass interface is defined in
+         include/spi_flash.h, but is currently fully compatible
+         with the old interface to avoid confusion and duplication
+         during the transition parent. SPI and SPI flash must be
+         enabled together (it is not possible to use driver model
+         for one and not the other).
 
 config SYS_I2C_UNIPHIER
        bool "UniPhier I2C driver"
index ce90a2cb495d1963f638135a515522810f22765d..2b348dc8b90ea77af0b59fa727a46e99c83a4028 100644 (file)
@@ -1,3 +1,13 @@
+config DM_CROS_EC
+       bool "Enable Driver Model for Chrome OS EC"
+       depends on DM
+       help
+         Enable driver model for the Chrome OS EC interface. This
+         allows the cros_ec SPI driver to operate with CONFIG_DM_SPI
+         but otherwise makes few changes. Since cros_ec also supports
+         I2C and LPC (which don't support driver model yet), a full
+         conversion is not yet possible.
+
 config MXC_OCOTP
        bool "Freescale OCOTP support"
        depends on SOC_MX5 || SOC_MX6
index 5b56f11e93497103392146fb1306b264628ec9c0..7e6457a46112ae93d0e27ede7bd86f95db1b5705 100644 (file)
@@ -19,3 +19,5 @@ config MTD_PARTITIONS
        default y
 
 source "drivers/mtd/nand/Kconfig"
+
+source "drivers/mtd/spi/Kconfig"
diff --git a/drivers/mtd/spi/Kconfig b/drivers/mtd/spi/Kconfig
new file mode 100644 (file)
index 0000000..2dc46b4
--- /dev/null
@@ -0,0 +1,14 @@
+config DM_SPI_FLASH
+       bool "Enable Driver Model for SPI flash"
+       depends on DM && SPI
+       help
+         Enable driver model for SPI flash. This SPI flash interface
+         (spi_flash_probe(), spi_flash_write(), etc.) is then
+         implemented by the SPI flash uclass. There is one standard
+         SPI flash driver which knows how to probe most chips
+         supported by U-Boot. The uclass interface is defined in
+         include/spi_flash.h, but is currently fully compatible
+         with the old interface to avoid confusion and duplication
+         during the transition parent. SPI and SPI flash must be
+         enabled together (it is not possible to use driver model
+         for one and not the other).
index a0b6e02b5462e5fc515a28d7f40b04a46c22018d..c94353ba6acf44ac0f1c5360f11a8da86ce7f649 100644 (file)
@@ -2,8 +2,10 @@ 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.
+         Enable driver model for serial. This replaces
+         drivers/serial/serial.c with the serial uclass, which
+         implements serial_putc() etc. The uclass interface is
+         defined in include/serial.h.
 
 config UNIPHIER_SERIAL
        bool "UniPhier on-chip UART support"
index e1678e63e6adf976e4514978a3d2e1a9b6634c42..7ae2727cf7eeff5205250f16fad1ec9061b0106b 100644 (file)
@@ -2,5 +2,11 @@ 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.
+         Enable driver model for SPI. The SPI slave interface
+         (spi_setup_slave(), spi_xfer(), etc.) is then implemented by
+         the SPI uclass. Drivers provide methods to access the SPI
+         buses that they control. The uclass interface is defined in
+         include/spi.h. The existing spi_slave structure is attached
+         as 'parent data' to every slave on each bus. Slaves
+         typically use driver-private data instead of extending the
+         spi_slave structure.
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
new file mode 100644 (file)
index 0000000..3c6b36d
--- /dev/null
@@ -0,0 +1,7 @@
+config DM_THERMAL
+       bool "Driver support for thermal devices"
+       help
+         Enable support for temporary-sensing devices. Some SoCs have on-chip
+         temperature sensors to permit warnings, speed throttling or even
+         automatic power-off when the temperature gets too high or low. Other
+         devices may be discrete but connected on a suitable bus.