diff options
author | Simon Glass <sjg@chromium.org> | 2023-08-14 16:40:38 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-08-25 13:54:33 -0400 |
commit | cfc402db3954d7c852c322b232ad6d8842af6bf1 (patch) | |
tree | 3e5eed7152cec2c46766d5b3dac2b9e2db9df27a /test/boot | |
parent | eb6c71b56282d3054dbffb83793e7d2c6745578e (diff) | |
download | u-boot-cfc402db3954d7c852c322b232ad6d8842af6bf1.tar.gz u-boot-cfc402db3954d7c852c322b232ad6d8842af6bf1.tar.bz2 u-boot-cfc402db3954d7c852c322b232ad6d8842af6bf1.zip |
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 'test/boot')
-rw-r--r-- | test/boot/cedit.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/boot/cedit.c b/test/boot/cedit.c index 010aae615b..ab2b8a1f9f 100644 --- a/test/boot/cedit.c +++ b/test/boot/cedit.c @@ -182,6 +182,17 @@ static int cedit_cmos(struct unit_test_state *uts) ut_assert_nextlinen("Write 2 bytes from offset 80 to 84"); ut_assert_console_end(); + /* reset the expo */ + menu->cur_item_id = ID_CPU_SPEED_1; + menu2->cur_item_id = ID_AC_OFF; + + ut_assertok(run_command("cedit read_cmos -v", 0)); + ut_assert_nextlinen("Read 2 bytes from offset 80 to 84"); + ut_assert_console_end(); + + ut_asserteq(ID_CPU_SPEED_2, menu->cur_item_id); + ut_asserteq(ID_AC_MEMORY, menu2->cur_item_id); + return 0; } BOOTSTD_TEST(cedit_cmos, 0); |