dm: button: support remapping phone keys
authorCaleb Connolly <caleb.connolly@linaro.org>
Sun, 14 Jul 2024 19:49:19 +0000 (21:49 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 17 Nov 2024 01:49:05 +0000 (19:49 -0600)
commitcae243927f67f81ff7456906bb6018b93e1c28f3
treec47e11a64d9fed207719d50092f7360efad82c97
parentc71d451033db9ed1ea3ac46fa81a09ec9c58918c
dm: button: support remapping phone keys

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>
drivers/button/Kconfig
drivers/button/button-uclass.c