[Concept,08/24] boot: Allow switching back to another layout

Message ID 20251018084117.1798704-9-sjg@u-boot.org
State New
Headers
Series bootctl: Expand bootctl to include a new UI |

Commit Message

Simon Glass Oct. 18, 2025, 8:40 a.m. UTC
  From: Simon Glass <sjg@chromium.org>

Implement the settings button to permit the user to switch to another
UI layout, if available.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 boot/bootflow_menu.c | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/boot/bootflow_menu.c b/boot/bootflow_menu.c
index 161c5a42401..26a2f559958 100644
--- a/boot/bootflow_menu.c
+++ b/boot/bootflow_menu.c
@@ -418,6 +418,8 @@  int bootflow_menu_poll(struct expo *exp, int *seqp)
 	case EXPOACT_CLICK:
 		if (act.select.id == OBJ_SETTINGS)
 			return -ECOMM;  /* layout change request */
+	case EXPOACT_SETTINGS:
+		return -ECOMM;  /* layout change request */
 	default:
 		return -EAGAIN;
 	}