Philippe Reynes | 3483aa2 | 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 | |
Caleb Connolly | 8ebd17a | 2024-07-14 21:49:19 +0200 | [diff] [blame] | 12 | config BUTTON_REMAP_PHONE_KEYS |
| 13 | bool "Remap phone keys for navigation" |
| 14 | depends on BUTTON |
| 15 | help |
| 16 | Enable remapping of phone keys to navigation keys. This is useful for |
| 17 | devices with phone keys that are not used in U-Boot. The phone keys |
| 18 | are remapped to the following navigation keys: |
| 19 | - Volume up: Up |
| 20 | - Volume down: Down |
| 21 | - Power: Enter |
| 22 | |
Marek Szyprowski | d26c408 | 2021-02-18 11:33:15 +0100 | [diff] [blame] | 23 | config BUTTON_ADC |
| 24 | bool "Button adc" |
| 25 | depends on BUTTON |
Quentin Schulz | 90b57cb | 2024-03-14 10:36:28 +0100 | [diff] [blame] | 26 | depends on ADC |
Marek Szyprowski | d26c408 | 2021-02-18 11:33:15 +0100 | [diff] [blame] | 27 | help |
| 28 | Enable support for buttons which are connected to Analog to Digital |
| 29 | Converter device. The ADC driver must use driver model. Buttons are |
| 30 | configured using the device tree. |
| 31 | |
Philippe Reynes | 7686d9f | 2020-07-24 18:19:46 +0200 | [diff] [blame] | 32 | config BUTTON_GPIO |
| 33 | bool "Button gpio" |
| 34 | depends on BUTTON |
Michael Walle | dc7241a | 2022-08-17 21:37:52 +0200 | [diff] [blame] | 35 | depends on DM_GPIO |
Philippe Reynes | 7686d9f | 2020-07-24 18:19:46 +0200 | [diff] [blame] | 36 | help |
| 37 | Enable support for buttons which are connected to GPIO lines. These |
| 38 | GPIOs may be on the SoC or some other device which provides GPIOs. |
| 39 | The GPIO driver must used driver model. Buttons are configured using |
| 40 | the device tree. |
| 41 | |
Caleb Connolly | 55759a3 | 2023-12-05 13:46:47 +0000 | [diff] [blame] | 42 | config BUTTON_QCOM_PMIC |
| 43 | bool "Qualcomm power button" |
| 44 | depends on BUTTON |
| 45 | depends on PMIC_QCOM |
| 46 | help |
| 47 | Enable support for the power and "resin" (usually volume down) buttons |
| 48 | on Qualcomm SoCs. These will be configured as the Enter and Down keys |
| 49 | respectively, allowing navigation of bootmenu with buttons on device. |
| 50 | |
Philippe Reynes | 3483aa2 | 2020-07-24 18:19:45 +0200 | [diff] [blame] | 51 | endmenu |