summaryrefslogtreecommitdiff
path: root/test/cmd/coreboot.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-10-14 16:32:08 -0600
committerTom Rini <trini@konsulko.com>2024-11-03 21:27:12 -0600
commitd04c23f1c5ee68134543eaa0c5b918d7c9988fe0 (patch)
tree8f37b86131daee2fa500c0f67065ca7bbc15584b /test/cmd/coreboot.c
parentbde86903abd6a1169f33f212ca1247d26ea11555 (diff)
x86: coreboot: Show the option table
Update the cbsysinfo command to show the contents of the CMOS option table. While we are here, add some example output for this command, along with mention of what the unimplemented tags are. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/cmd/coreboot.c')
-rw-r--r--test/cmd/coreboot.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/cmd/coreboot.c b/test/cmd/coreboot.c
index 4a00bad2b8f..0fcf66ac71b 100644
--- a/test/cmd/coreboot.c
+++ b/test/cmd/coreboot.c
@@ -22,6 +22,13 @@ static int test_cmd_cbsysinfo(struct unit_test_state *uts)
ut_assertok(run_command("cbsysinfo", 0));
ut_assert_nextlinen("Coreboot table at");
+ /* Make sure CMOS options are enabled */
+ ut_assert_skip_to_line(
+ " 1c0 1 e 1 power_on_after_fail 0:Disable 1:Enable");
+ ut_assert_skip_to_line("CMOS start : 1c0");
+ ut_assert_nextline(" CMOS end : 1cf");
+ ut_assert_nextline(" CMOS csum loc: 3f0");
+
/* Make sure the linear frame buffer is enabled */
ut_assert_skip_to_linen("Framebuffer");
ut_assert_nextlinen(" Phys addr");