summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2019-08-28 22:49:29 +0530
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2019-08-29 10:48:11 +0200
commit5086ee1aa38de6d69efea1d4a5ee535203014097 (patch)
tree30c2342d46c4edb407027a47c79dcb61a89f9708
parentf15f9df0ae5fb588d546ceae1dcaf8cc939b721e (diff)
downloadabl-5086ee1aa38de6d69efea1d4a5ee535203014097.tar.gz
QcomModulePkg: Fastboot: Add extend Fastboot menu to UART interfacedragonboard845c-LE.UM.2.3.7-09200-sda845.0-linaro1release/LE.UM.2.3.7-09200-sda845.0
We can already somewhat control the fastboot menu over the serial UART, as up and down changes action mode. However, there's no way to select the mode over the UART. So add some feedback over the UART as to the current mode and use SCAN_RIGHT as the selection option (equivalent to the power button). Signed-off-by: John Stultz <john.stultz@linaro.org> [AmitP: It is equivalent of using VOL+ (up), VOL- (down) and POWER keys on db845c to scroll thru or select fastboot options displayed over HDMI display.] Tested-by: Amit Pundir <amit.pundir@linaro.org> Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
-rw-r--r--QcomModulePkg/Library/BootLib/FastbootMenu.c2
-rw-r--r--QcomModulePkg/Library/BootLib/MenuKeysDetection.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/QcomModulePkg/Library/BootLib/FastbootMenu.c b/QcomModulePkg/Library/BootLib/FastbootMenu.c
index 1d095efe4..7004f76f3 100644
--- a/QcomModulePkg/Library/BootLib/FastbootMenu.c
+++ b/QcomModulePkg/Library/BootLib/FastbootMenu.c
@@ -175,6 +175,8 @@ UpdateFastbootOptionItem (UINT32 OptionItem, UINT32 *pLocation)
return EFI_OUT_OF_RESOURCES;
}
+ DEBUG ((EFI_D_INFO, "Fastboot Action (Press <Right> to select): %s\n", mFastbootOptionTitle[OptionItem].Msg));
+
SetMenuMsgInfo (FastbootLineInfo, "__________", COMMON_FACTOR,
mFastbootOptionTitle[OptionItem].FgColor,
mFastbootOptionTitle[OptionItem].BgColor, LINEATION, Location,
diff --git a/QcomModulePkg/Library/BootLib/MenuKeysDetection.c b/QcomModulePkg/Library/BootLib/MenuKeysDetection.c
index 42e79eb6f..45843bb12 100644
--- a/QcomModulePkg/Library/BootLib/MenuKeysDetection.c
+++ b/QcomModulePkg/Library/BootLib/MenuKeysDetection.c
@@ -397,6 +397,7 @@ MenuKeysHandler (IN EFI_EVENT Event, IN VOID *Context)
if (MenuPagesAction[MenuInfo->Info.MenuType].Down_Action_Func != NULL)
MenuPagesAction[MenuInfo->Info.MenuType].Down_Action_Func (MenuInfo);
break;
+ case SCAN_RIGHT:
case SCAN_SUSPEND:
if (MenuPagesAction[MenuInfo->Info.MenuType].Enter_Action_Func != NULL)
MenuPagesAction[MenuInfo->Info.MenuType].Enter_Action_Func (MenuInfo);