Commit 0b11dbf705ee294ac5a9fe1aeda7b7f5537a8d72
Committed by
Tom Rini
1 parent
c69abd801b
Exists in
v2017.01-smarct4x
and in
30 other branches
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
drivers/crypto/Kconfig
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
drivers/i2c/Kconfig
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 |
drivers/led/Kconfig
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 |
drivers/rtc/Kconfig
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
drivers/video/Kconfig