mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
4e8aa0065d
Qualcomm PMICs include a "pon" function which handles two buttons, the power button and "resin" button (usually volume down). Introduce a new driver following upstream Linux DT to enable these and map them to Enter and Down respectively to enable use in boot menus. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Tested-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
39 lines
1.2 KiB
Text
39 lines
1.2 KiB
Text
menu "Button Support"
|
|
|
|
config BUTTON
|
|
bool "Enable button support"
|
|
depends on DM
|
|
help
|
|
Many boards have buttons which can be used to change behaviour (reset, ...).
|
|
U-Boot provides a uclass API to implement this feature. Button drivers
|
|
can provide access to board-specific buttons. Use of the device tree
|
|
for configuration is encouraged.
|
|
|
|
config BUTTON_ADC
|
|
bool "Button adc"
|
|
depends on BUTTON
|
|
help
|
|
Enable support for buttons which are connected to Analog to Digital
|
|
Converter device. The ADC driver must use driver model. Buttons are
|
|
configured using the device tree.
|
|
|
|
config BUTTON_GPIO
|
|
bool "Button gpio"
|
|
depends on BUTTON
|
|
depends on DM_GPIO
|
|
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.
|
|
|
|
config BUTTON_QCOM_PMIC
|
|
bool "Qualcomm power button"
|
|
depends on BUTTON
|
|
depends on PMIC_QCOM
|
|
help
|
|
Enable support for the power and "resin" (usually volume down) buttons
|
|
on Qualcomm SoCs. These will be configured as the Enter and Down keys
|
|
respectively, allowing navigation of bootmenu with buttons on device.
|
|
|
|
endmenu
|