blob: 3918b05ae03e0714b56f376bc81b231c2f3068df [file] [log] [blame]
Philippe Reynes30d66db2020-07-24 18:19:45 +02001menu "Button Support"
2
3config 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 Szyprowskic0165c82021-02-18 11:33:15 +010012config BUTTON_ADC
13 bool "Button adc"
14 depends on BUTTON
Quentin Schulz759ae812024-03-14 10:36:28 +010015 depends on ADC
Marek Szyprowskic0165c82021-02-18 11:33:15 +010016 help
17 Enable support for buttons which are connected to Analog to Digital
18 Converter device. The ADC driver must use driver model. Buttons are
19 configured using the device tree.
20
Philippe Reynes486b9732020-07-24 18:19:46 +020021config BUTTON_GPIO
22 bool "Button gpio"
23 depends on BUTTON
Michael Walle1b343392022-08-17 21:37:52 +020024 depends on DM_GPIO
Philippe Reynes486b9732020-07-24 18:19:46 +020025 help
26 Enable support for buttons which are connected to GPIO lines. These
27 GPIOs may be on the SoC or some other device which provides GPIOs.
28 The GPIO driver must used driver model. Buttons are configured using
29 the device tree.
30
Caleb Connolly4e8aa002023-12-05 13:46:47 +000031config BUTTON_QCOM_PMIC
32 bool "Qualcomm power button"
33 depends on BUTTON
34 depends on PMIC_QCOM
35 help
36 Enable support for the power and "resin" (usually volume down) buttons
37 on Qualcomm SoCs. These will be configured as the Enter and Down keys
38 respectively, allowing navigation of bootmenu with buttons on device.
39
Philippe Reynes30d66db2020-07-24 18:19:45 +020040endmenu