Commit 0b11dbf705ee294ac5a9fe1aeda7b7f5537a8d72

Authored by Masahiro Yamada
Committed by Tom Rini
1 parent c69abd801b

drivers: hierarchize drivers Kconfig menu

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>

Showing 11 changed files with 68 additions and 0 deletions Side-by-side Diff

drivers/core/Kconfig
  1 +menu "Generic Driver Options"
  2 +
1 3 config DM
2 4 bool "Enable Driver Model"
3 5 help
... ... @@ -102,4 +104,6 @@
102 104 debug resource management for a managed device.
103 105  
104 106 If you are unsure about this, Say N here.
  107 +
  108 +endmenu
drivers/crypto/Kconfig
  1 +menu "Hardware crypto devices"
  2 +
1 3 source drivers/crypto/fsl/Kconfig
  4 +
  5 +endmenu
drivers/demo/Kconfig
  1 +menu "Demo for driver model"
  2 +
1 3 config DM_DEMO
2 4 bool "Enable demo uclass support"
3 5 depends on DM
... ... @@ -24,4 +26,6 @@
24 26 a shape when the 'demo hello' command is executed which targets
25 27 this device. It can be used to help understand how driver model
26 28 works.
  29 +
  30 +endmenu
drivers/gpio/Kconfig
  1 +#
  2 +# GPIO infrastructure and drivers
  3 +#
  4 +
  5 +menu "GPIO Support"
  6 +
1 7 config DM_GPIO
2 8 bool "Enable Driver Model for GPIO drivers"
3 9 depends on DM
... ... @@ -42,4 +48,6 @@
42 48 default n
43 49 help
44 50 Say yes here to support Vybrid vf610 GPIOs.
  51 +
  52 +endmenu
  1 +#
  2 +# I2C subsystem configuration
  3 +#
  4 +
  5 +menu "I2C support"
  6 +
1 7 config DM_I2C
2 8 bool "Enable Driver Model for I2C drivers"
3 9 depends on DM
... ... @@ -99,4 +105,6 @@
99 105 This I2C controller is used on PH1-Pro4 or newer UniPhier SoCs.
100 106  
101 107 source "drivers/i2c/muxes/Kconfig"
  108 +
  109 +endmenu
  1 +menu "LED Support"
  2 +
1 3 config LED
2 4 bool "Enable LED support"
3 5 depends on DM
... ... @@ -24,4 +26,6 @@
24 26 GPIOs may be on the SoC or some other device which provides GPIOs.
25 27 The GPIO driver must used driver model. LEDs are configured using
26 28 the device tree.
  29 +
  30 +endmenu
drivers/misc/Kconfig
  1 +#
  2 +# Multifunction miscellaneous devices
  3 +#
  4 +
  5 +menu "Multifunction device drivers"
  6 +
1 7 config CMD_CROS_EC
2 8 bool "Enable crosec command"
3 9 depends on CROS_EC
... ... @@ -82,4 +88,6 @@
82 88 Each driver can provide a reset method which will be called to
83 89 effect a reset. The uclass will try all available drivers when
84 90 reset_walk() is called.
  91 +
  92 +endmenu
  1 +#
  2 +# RTC drivers configuration
  3 +#
  4 +
  5 +menu "Real Time Clock"
  6 +
1 7 config DM_RTC
2 8 bool "Enable Driver Model for RTC drivers"
3 9 depends on DM
... ... @@ -6,4 +12,6 @@
6 12 then provides the rtc_get()/rtc_set() interface, delegating to
7 13 drivers to perform the actual functions. See rtc.h for a
8 14 description of the API.
  15 +
  16 +endmenu
drivers/serial/Kconfig
  1 +#
  2 +# Serial device configuration
  3 +#
  4 +
  5 +menu "Serial drivers"
  6 +
1 7 config REQUIRE_SERIAL_CONSOLE
2 8 bool "Require a serial port for console"
3 9 # Running without a serial console is not supported by the
... ... @@ -139,4 +145,6 @@
139 145 enabled in the device tree with the correct input clock frequency
140 146 provided (default 1843200). Enable this to obtain serial console
141 147 output.
  148 +
  149 +endmenu
drivers/sound/Kconfig
  1 +menu "Sound support"
  2 +
1 3 config SOUND
2 4 bool "Enable sound support"
3 5 help
... ... @@ -53,4 +55,6 @@
53 55 Enable the wm8994 audio codec. This is connected via I2S for
54 56 audio data and I2C for codec control. At present it only works
55 57 with the Samsung I2S driver.
  58 +
  59 +endmenu
drivers/video/Kconfig
  1 +#
  2 +# Video configuration
  3 +#
  4 +
  5 +menu "Graphics support"
  6 +
1 7 config VIDEO_VESA
2 8 bool "Enable VESA video driver support"
3 9 default n
... ... @@ -242,4 +248,6 @@
242 248 have an eDP display connected.
243 249  
244 250 source "drivers/video/bridge/Kconfig"
  251 +
  252 +endmenu