diff options
| author | Philippe Reynes <philippe.reynes@softathome.com> | 2020-07-24 18:19:46 +0200 |
|---|---|---|
| committer | Simon Glass <sjg@chromium.org> | 2020-07-28 19:30:39 -0600 |
| commit | 486b973ee9b9bd89ff53bc9d3d1cff4ada73eb36 (patch) | |
| tree | 67df97d7343a2fb11edd92a05b93c7bd609c417c /drivers/button/Kconfig | |
| parent | 30d66db78725e8396a3bd255cc51592c6cd7879d (diff) | |
| download | u-boot-486b973ee9b9bd89ff53bc9d3d1cff4ada73eb36.tar.gz u-boot-486b973ee9b9bd89ff53bc9d3d1cff4ada73eb36.tar.xz u-boot-486b973ee9b9bd89ff53bc9d3d1cff4ada73eb36.zip | |
dm: button: add a driver for button driven by gpio
Add a simple driver which allows use of buttons attached to GPIOs.
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 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/button/Kconfig b/drivers/button/Kconfig index 83018589e5..6b3ec7e55d 100644 --- a/drivers/button/Kconfig +++ b/drivers/button/Kconfig @@ -9,4 +9,13 @@ config BUTTON can provide access to board-specific buttons. Use of the device tree for configuration is encouraged. +config BUTTON_GPIO + bool "Button gpio" + depends on BUTTON + help + Enable support for buttons which are connected to GPIO lines. These + GPIOs may be on the SoC or some other device which provides GPIOs. + The GPIO driver must used driver model. Buttons are configured using + the device tree. + endmenu |
