aboutsummaryrefslogtreecommitdiff
path: root/test/cmd_ut.c
diff options
context:
space:
mode:
authorStephen Carlson <stcarlso@linux.microsoft.com>2023-03-10 11:07:15 -0800
committerTom Rini <trini@konsulko.com>2023-03-30 15:09:59 -0400
commit447dfbc0638f65accaeba1afa3b33840bdb46b6e (patch)
tree8bcd6106c63f87c1f702d95a5a18950aecc1f38a /test/cmd_ut.c
parent713db6f6d3a3212270fd12ba5c47e986b36dbc39 (diff)
test: Add test for new command pci_mps
Adds a test for the new pci_mps command to ensure that it can set the Maximum Payload Size (MPS) of all devices to 256 bytes in the sandbox environment. Enables the pci_mps command in the sandbox environment so that this test can be run. Signed-off-by: Stephen Carlson <stcarlso@linux.microsoft.com>
Diffstat (limited to 'test/cmd_ut.c')
-rw-r--r--test/cmd_ut.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/cmd_ut.c b/test/cmd_ut.c
index 409c22bfd2..d440da833a 100644
--- a/test/cmd_ut.c
+++ b/test/cmd_ut.c
@@ -110,6 +110,9 @@ static struct cmd_tbl cmd_ut_sub[] = {
#ifdef CONFIG_CMD_LOADM
U_BOOT_CMD_MKENT(loadm, CONFIG_SYS_MAXARGS, 1, do_ut_loadm, "", ""),
#endif
+#ifdef CONFIG_CMD_PCI_MPS
+ U_BOOT_CMD_MKENT(pci_mps, CONFIG_SYS_MAXARGS, 1, do_ut_pci_mps, "", ""),
+#endif
#ifdef CONFIG_CMD_SEAMA
U_BOOT_CMD_MKENT(seama, CONFIG_SYS_MAXARGS, 1, do_ut_seama, "", ""),
#endif
@@ -210,6 +213,9 @@ static char ut_help_text[] =
#ifdef CONFIG_UT_OVERLAY
"\noverlay - device tree overlays"
#endif
+#ifdef CONFIG_CMD_PCI_MPS
+ "\npci_mps - PCI Express Maximum Payload Size"
+#endif
"\nprint - printing things to the console"
"\nsetexpr - setexpr command"
#ifdef CONFIG_SANDBOX