summaryrefslogtreecommitdiff
path: root/test/cmd
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2025-11-23 23:56:54 +0100
committerTom Rini <[email protected]>2025-12-05 08:54:44 -0600
commit3144be7f405879964d7a300d869e726ea0426fc5 (patch)
treeae74f49ef550423735de3cdd48a2a8975d8b3469 /test/cmd
parentc448c933b9c2f55c6eff996fcd281c40e65d6eda (diff)
test: cmd/bdinfo: consider ARM architecture specific info
On ARM the bdinfo command prints architecture specific information. The test needs to accept these output lines. Signed-off-by: Heinrich Schuchardt <[email protected]> Acked-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'test/cmd')
-rw-r--r--test/cmd/bdinfo.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/cmd/bdinfo.c b/test/cmd/bdinfo.c
index 28d448a0866..9ffa0d3cdd5 100644
--- a/test/cmd/bdinfo.c
+++ b/test/cmd/bdinfo.c
@@ -224,6 +224,34 @@ static int bdinfo_test_all(struct unit_test_state *uts)
if (gd->arch.firmware_fdt_addr)
ut_check_console_linen(uts, "firmware fdt");
#endif
+#ifdef CONFIG_ARM
+ ut_check_console_linen(uts, "arch_number");
+#ifdef CFG_SYS_MEM_RESERVE_SECURE
+ if (gd->arch.secure_ram & MEM_RESERVE_SECURE_SECURED)
+ ut_check_console_linen(uts, "Secure ram");
+#endif
+#ifdef CONFIG_RESV_RAM
+ if (gd->arch.resv_ram)
+ ut_check_console_linen(uts, "Reserved ram");
+#endif
+#if !(CONFIG_IS_ENABLED(SYS_ICACHE_OFF) && CONFIG_IS_ENABLED(SYS_DCACHE_OFF))
+ ut_check_console_linen(uts, "TLB addr");
+#endif
+ ut_check_console_linen(uts, "irq_sp");
+ ut_check_console_linen(uts, "sp start");
+#ifdef CONFIG_CLOCKS
+ ut_check_console_linen(uts, "ARM frequency =");
+ ut_check_console_linen(uts, "DSP frequency =");
+ ut_check_console_linen(uts, "DDR frequency =");
+#endif
+#ifdef CONFIG_BOARD_TYPES
+ ut_check_console_linen(uts, "Board Type =");
+#endif
+#if CONFIG_IS_ENABLED(SYS_MALLOC_F)
+ ut_check_console_linen(uts, "Early malloc usage:");
+#endif
+
+#endif /* CONFIG_ARM */
return 0;
}