summaryrefslogtreecommitdiff
path: root/boot/scene_menu.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-08-14 16:40:38 -0600
committerTom Rini <trini@konsulko.com>2023-08-25 13:54:33 -0400
commitcfc402db3954d7c852c322b232ad6d8842af6bf1 (patch)
tree3e5eed7152cec2c46766d5b3dac2b9e2db9df27a /boot/scene_menu.c
parenteb6c71b56282d3054dbffb83793e7d2c6745578e (diff)
expo: cedit: Support reading settings from CMOS RAM
Add a command to read edit settings from CMOS RAM, using the cedit definition to indicate which registers and bits are used. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot/scene_menu.c')
-rw-r--r--boot/scene_menu.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/boot/scene_menu.c b/boot/scene_menu.c
index 602fe24580a..e0dcd0a4e04 100644
--- a/boot/scene_menu.c
+++ b/boot/scene_menu.c
@@ -46,6 +46,22 @@ struct scene_menitem *scene_menuitem_find(const struct scene_obj_menu *menu,
return NULL;
}
+struct scene_menitem *scene_menuitem_find_seq(const struct scene_obj_menu *menu,
+ uint seq)
+{
+ struct scene_menitem *item;
+ uint i;
+
+ i = 0;
+ list_for_each_entry(item, &menu->item_head, sibling) {
+ if (i == seq)
+ return item;
+ i++;
+ }
+
+ return NULL;
+}
+
/**
* update_pointers() - Update the pointer object and handle highlights
*