From: Sam Day <[email protected]> If I'm being honest, I thought of doing this primarily because I haven't wired up the PMIC power button on my samsung-expressltexx yet. But, I think it does make sense to remap the center button on older Android phones to act as the Enter key anyway.
Signed-off-by: Sam Day <[email protected]> --- drivers/button/Kconfig | 2 +- drivers/button/button-uclass.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/button/Kconfig b/drivers/button/Kconfig index 6cae16fcc8b..8e6bab74cf1 100644 --- a/drivers/button/Kconfig +++ b/drivers/button/Kconfig @@ -18,7 +18,7 @@ config BUTTON_REMAP_PHONE_KEYS are remapped to the following navigation keys: - Volume up: Up - Volume down: Down - - Power: Enter + - Home/Power: Enter config BUTTON_ADC bool "Button adc" diff --git a/drivers/button/button-uclass.c b/drivers/button/button-uclass.c index 025917887e8..4e37180fc09 100644 --- a/drivers/button/button-uclass.c +++ b/drivers/button/button-uclass.c @@ -45,6 +45,7 @@ static int button_remap_phone_keys(int code) return KEY_UP; case KEY_VOLUMEDOWN: return KEY_DOWN; + case KEY_HOMEPAGE: case KEY_POWER: return KEY_ENTER; default: -- 2.54.0

