summaryrefslogtreecommitdiff
path: root/drivers/button/Kconfig
diff options
context:
space:
mode:
authorPhilippe Reynes <philippe.reynes@softathome.com>2020-07-24 19:19:45 +0300
committerSimon Glass <sjg@chromium.org>2020-07-29 04:30:39 +0300
commit30d66db78725e8396a3bd255cc51592c6cd7879d (patch)
tree90d70ab789bfb6e85522a989ca9631174bf45a60 /drivers/button/Kconfig
parent037a56d6b1e2a2ce45454b2629800ee5e7f6b46e (diff)
downloadu-boot-30d66db78725e8396a3bd255cc51592c6cd7879d.tar.xz
dm: button: add an uclass for button
Add a new uclass for button that implements two functions: - button_get_by_label - button_get_status Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
Diffstat (limited to 'drivers/button/Kconfig')
-rw-r--r--drivers/button/Kconfig12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/button/Kconfig b/drivers/button/Kconfig
new file mode 100644
index 0000000000..83018589e5
--- /dev/null
+++ b/drivers/button/Kconfig
@@ -0,0 +1,12 @@
+menu "Button Support"
+
+config BUTTON
+ bool "Enable button support"
+ depends on DM
+ help
+ Many boards have buttons which can be used to change behaviour (reset, ...).
+ U-Boot provides a uclass API to implement this feature. Button drivers
+ can provide access to board-specific buttons. Use of the device tree
+ for configuration is encouraged.
+
+endmenu