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>
This commit is contained in:
Philippe Reynes
2020-07-24 18:19:46 +02:00
committed by Simon Glass
parent 30d66db787
commit 486b973ee9
3 changed files with 122 additions and 0 deletions

View File

@@ -3,3 +3,4 @@
# Copyright (C) 2020 Philippe Reynes <philippe.reynes@softathome.com>
obj-$(CONFIG_BUTTON) += button-uclass.o
obj-$(CONFIG_BUTTON_GPIO) += button-gpio.o