diff options
author | Philippe Reynes <philippe.reynes@softathome.com> | 2020-07-24 18:19:45 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-07-28 19:30:39 -0600 |
commit | 30d66db78725e8396a3bd255cc51592c6cd7879d (patch) | |
tree | 90d70ab789bfb6e85522a989ca9631174bf45a60 /drivers/button/Kconfig | |
parent | 037a56d6b1e2a2ce45454b2629800ee5e7f6b46e (diff) | |
download | u-boot-30d66db78725e8396a3bd255cc51592c6cd7879d.tar.gz u-boot-30d66db78725e8396a3bd255cc51592c6cd7879d.tar.xz u-boot-30d66db78725e8396a3bd255cc51592c6cd7879d.zip |
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/Kconfig | 12 |
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 |