LinuxLoader: fix bootloader and recovery mode boot key combination
POWER + VOL UP -> Bootloader
POWER + VOL DOWN -> Recovery
Change-Id: I6299ed3960fbc20fb947474ede1d41710270a049
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
diff --git a/QcomModulePkg/Application/LinuxLoader/LinuxLoader.c b/QcomModulePkg/Application/LinuxLoader/LinuxLoader.c
index a8b594a..1f936a2 100755
--- a/QcomModulePkg/Application/LinuxLoader/LinuxLoader.c
+++ b/QcomModulePkg/Application/LinuxLoader/LinuxLoader.c
@@ -219,10 +219,10 @@
Status = GetKeyPress (&KeyPressed);
if (Status == EFI_SUCCESS) {
- if (KeyPressed == SCAN_DOWN)
- BootIntoFastboot = TRUE;
- if (KeyPressed == SCAN_UP)
+ if ((KeyPressed == SCAN_DOWN) || (KeyPressed == SCAN_DELETE))
BootIntoRecovery = TRUE;
+ if ((KeyPressed == SCAN_UP) || (KeyPressed == SCAN_HOME))
+ BootIntoFastboot = TRUE;
if (KeyPressed == SCAN_ESC)
RebootDevice (EMERGENCY_DLOAD);
} else if (Status == EFI_DEVICE_ERROR) {