]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
drivers: hierarchize drivers Kconfig menu
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 25 Jul 2015 17:46:26 +0000 (02:46 +0900)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 08:18:02 +0000 (10:18 +0200)
The menuconfig for drivers are getting more and more cluttered
and unreadable because too many entries are displayed in a single
flat menu.  Use hierarchic menu for each category.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
[trini: Update to apply again in a few places, drop USB hunk]
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/core/Kconfig
drivers/crypto/Kconfig
drivers/demo/Kconfig
drivers/gpio/Kconfig
drivers/i2c/Kconfig
drivers/led/Kconfig
drivers/misc/Kconfig
drivers/rtc/Kconfig
drivers/serial/Kconfig
drivers/sound/Kconfig
drivers/video/Kconfig

index c82b5645cdfd86dface18dac4959980b3c2361c4..788f8b739bf40f8aca95f98466f9a3f77f03639e 100644 (file)
@@ -1,3 +1,5 @@
+menu "Generic Driver Options"
+
 config DM
        bool "Enable Driver Model"
        help
@@ -102,3 +104,5 @@ config DEBUG_DEVRES
          debug resource management for a managed device.
 
          If you are unsure about this, Say N here.
+
+endmenu
index bd26a2bcfa286d9fd6b80b60cbd7ee9cc4c63ac8..1ea116be7503b7e3054fc72fe48fb2afd563bb58 100644 (file)
@@ -1 +1,5 @@
+menu "Hardware crypto devices"
+
 source drivers/crypto/fsl/Kconfig
+
+endmenu
index 7a8ce185551d05382d741dea3cfe35a097f7f354..98bb6333c1c0ef5f1874b3ac611351aed2402b1e 100644 (file)
@@ -1,3 +1,5 @@
+menu "Demo for driver model"
+
 config DM_DEMO
        bool "Enable demo uclass support"
        depends on DM
@@ -24,3 +26,5 @@ config DM_DEMO_SHAPE
          a shape when the 'demo hello' command is executed which targets
          this device. It can be used to help understand how driver model
          works.
+
+endmenu
index 0c43777cef9dacdeb5d878a3500d4de35450b2b8..5934597c4ed0b22df0dfdd6631f2be4738fa0e93 100644 (file)
@@ -1,3 +1,9 @@
+#
+# GPIO infrastructure and drivers
+#
+
+menu "GPIO Support"
+
 config DM_GPIO
        bool "Enable Driver Model for GPIO drivers"
        depends on DM
@@ -42,3 +48,5 @@ config VYBRID_GPIO
        default n
        help
          Say yes here to support Vybrid vf610 GPIOs.
+
+endmenu
index 4c8ea477a825c5e6a3f35dc0246dc43ff53dad6b..fced6ebf9432ecf868d4b3d338231bc7cd4682f8 100644 (file)
@@ -1,15 +1,14 @@
-menuconfig SYS_I2C
-       bool "I2C device support"
+#
+# I2C subsystem configuration
+#
 
-if SYS_I2C
+menu "I2C device support"
 
 config HARD_I2C
        bool
 
-config SYS_I2C_MXC
-       bool "Freescale i.MX I2C controller"
-       select HARD_I2C
-       select I2C_QUIRK_REG if FSL_LSCH3 || SOC_LS102XA
+config SYS_I2C
+       bool
 
 config DM_I2C
        bool "Enable Driver Model for I2C drivers"
@@ -65,6 +64,14 @@ config DM_I2C_GPIO
          bindings are supported.
          Binding info: doc/device-tree-bindings/i2c/i2c-gpio.txt
 
+config SYS_I2C_MXC
+       bool "Freescale i.MX I2C controller"
+       select HARD_I2C
+       select I2C_QUIRK_REG if FSL_LSCH3 || SOC_LS102XA
+
+config I2C_QUIRK_REG
+       bool
+
 config SYS_I2C_SANDBOX
        bool "Sandbox I2C driver"
        depends on SANDBOX && DM_I2C
@@ -113,4 +120,4 @@ config SYS_I2C_UNIPHIER_F
 
 source "drivers/i2c/muxes/Kconfig"
 
-endif
+endmenu
index de5feea8dd3df15cb5418b844ae9979b4aecaccb..b21bc9474837f0917b6a3b1e8a84b1b612fa7cd8 100644 (file)
@@ -1,3 +1,5 @@
+menu "LED Support"
+
 config LED
        bool "Enable LED support"
        depends on DM
@@ -24,3 +26,5 @@ config LED_GPIO
          GPIOs may be on the SoC or some other device which provides GPIOs.
          The GPIO driver must used driver model. LEDs are configured using
          the device tree.
+
+endmenu
index ebcd58c46dd09c5ee5724d7c6754b482bf618c49..00fbc2e2ff287b463008c34859945f5e56298a19 100644 (file)
@@ -1,3 +1,9 @@
+#
+# Multifunction miscellaneous devices
+#
+
+menu "Multifunction device drivers"
+
 config CMD_CROS_EC
        bool "Enable crosec command"
        depends on CROS_EC
@@ -90,3 +96,5 @@ config RESET
          Each driver can provide a reset method which will be called to
          effect a reset. The uclass will try all available drivers when
          reset_walk() is called.
+
+endmenu
index bd63621e37162b085bbf2f15c12f33b55b988022..b5d9048ad6a54424ba2b898219bece4191fbf8d4 100644 (file)
@@ -1,3 +1,9 @@
+#
+# RTC drivers configuration
+#
+
+menu "Real Time Clock"
+
 config DM_RTC
        bool "Enable Driver Model for RTC drivers"
        depends on DM
@@ -6,3 +12,5 @@ config DM_RTC
          then provides the rtc_get()/rtc_set() interface, delegating to
          drivers to perform the actual functions. See rtc.h for a
          description of the API.
+
+endmenu
index a880eacfaf7149b8149bf7d8db006d7b4adfea56..4f6a3b87a137bdb6c51e4cd0b5196da8e9c9e50d 100644 (file)
@@ -1,3 +1,9 @@
+#
+# Serial device configuration
+#
+
+menu "Serial drivers"
+
 config REQUIRE_SERIAL_CONSOLE
        bool "Require a serial port for console"
        # Running without a serial console is not supported by the
@@ -139,3 +145,5 @@ config X86_SERIAL
          enabled in the device tree with the correct input clock frequency
          provided (default 1843200). Enable this to obtain serial console
          output.
+
+endmenu
index 3b96e844806067066dad94cc5bcbc024a62e7067..5de86c05c600de10739001263485c96956ebc904 100644 (file)
@@ -1,3 +1,5 @@
+menu "Sound support"
+
 config SOUND
        bool "Enable sound support"
        help
@@ -53,3 +55,5 @@ config SOUND_WM8994
          Enable the wm8994 audio codec. This is connected via I2S for
          audio data and I2C for codec control. At present it only works
          with the Samsung I2S driver.
+
+endmenu
index 3244cd7eddba19fca48f61902d4c916248b67fef..5cb36851e71ff1eb7ac4c8502889e41744cbb1ad 100644 (file)
@@ -1,3 +1,9 @@
+#
+# Video configuration
+#
+
+menu "Graphics support"
+
 config VIDEO_VESA
        bool "Enable VESA video driver support"
        default n
@@ -242,3 +248,5 @@ config VIDEO_TEGRA124
           have an eDP display connected.
 
 source "drivers/video/bridge/Kconfig"
+
+endmenu