mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-18 10:54:37 +00:00

We don't have audio support in U-Boot, but we do have boot menus. Add an option to re-map the volume and power buttons to up/down/enter so that in situations where these are the only available buttons (such as on mobile phones) it's still possible to navigate menus built in U-Boot or an external EFI app like GRUB or systemd-boot. Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> Reviewed-by: Dragan Simic <dsimic@manjaro.org>
51 lines
1.6 KiB
Text
51 lines
1.6 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_REMAP_PHONE_KEYS
|
|
bool "Remap phone keys for navigation"
|
|
depends on BUTTON
|
|
help
|
|
Enable remapping of phone keys to navigation keys. This is useful for
|
|
devices with phone keys that are not used in U-Boot. The phone keys
|
|
are remapped to the following navigation keys:
|
|
- Volume up: Up
|
|
- Volume down: Down
|
|
- Power: Enter
|
|
|
|
config BUTTON_ADC
|
|
bool "Button adc"
|
|
depends on BUTTON
|
|
depends on ADC
|
|
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
|