summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2019-08-28 22:49:29 +0530
committerAmit Pundir <amit.pundir@linaro.org>2019-11-27 22:18:34 +0530
commit5b7f1237b6b4797af6564bb3687be779d3128c08 (patch)
tree38f3b74af4567e8ec5a7e34af852b8a2dd5d8157
parent2e4c4d17252ecbf9233dcdf424efcbd76e6f5dc6 (diff)
QcomModulePkg: Fastboot: Add extend Fastboot menu to UART interface
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 1d095efe44..7004f76f38 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 42e79eb6f5..45843bb121 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);