Philippe Reynes | 30d66db | 2020-07-24 18:19:45 +0200 | [diff] [blame] | 1 | menu "Button Support" |
| 2 | |
| 3 | config BUTTON |
| 4 | bool "Enable button support" |
| 5 | depends on DM |
| 6 | help |
| 7 | Many boards have buttons which can be used to change behaviour (reset, ...). |
| 8 | U-Boot provides a uclass API to implement this feature. Button drivers |
| 9 | can provide access to board-specific buttons. Use of the device tree |
| 10 | for configuration is encouraged. |
| 11 | |
Marek Szyprowski | c0165c8 | 2021-02-18 11:33:15 +0100 | [diff] [blame] | 12 | config BUTTON_ADC |
| 13 | bool "Button adc" |
| 14 | depends on BUTTON |
| 15 | help |
| 16 | Enable support for buttons which are connected to Analog to Digital |
| 17 | Converter device. The ADC driver must use driver model. Buttons are |
| 18 | configured using the device tree. |
| 19 | |
Philippe Reynes | 486b973 | 2020-07-24 18:19:46 +0200 | [diff] [blame] | 20 | config BUTTON_GPIO |
| 21 | bool "Button gpio" |
| 22 | depends on BUTTON |
Michael Walle | 1b34339 | 2022-08-17 21:37:52 +0200 | [diff] [blame] | 23 | depends on DM_GPIO |
Philippe Reynes | 486b973 | 2020-07-24 18:19:46 +0200 | [diff] [blame] | 24 | help |
| 25 | Enable support for buttons which are connected to GPIO lines. These |
| 26 | GPIOs may be on the SoC or some other device which provides GPIOs. |
| 27 | The GPIO driver must used driver model. Buttons are configured using |
| 28 | the device tree. |
| 29 | |
Caleb Connolly | 64d3392 | 2023-11-30 15:11:47 +0000 | [diff] [blame^] | 30 | config BUTTON_QCOM_PMIC |
| 31 | bool "Qualcomm power button" |
| 32 | depends on BUTTON |
| 33 | depends on PMIC_QCOM |
| 34 | help |
| 35 | Enable support for the power and "resin" (usually volume down) buttons |
| 36 | on Qualcomm SoCs. These will be configured as the Enter and Down keys |
| 37 | respectively, allowing navigation of bootmenu with buttons on device. |
| 38 | |
Philippe Reynes | 30d66db | 2020-07-24 18:19:45 +0200 | [diff] [blame] | 39 | endmenu |