1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (c) 2013 Google, Inc
6 * Marek Vasut <marex@denx.de>
13 static int do_dm_dump_tree(struct cmd_tbl *cmdtp, int flag, int argc,
21 static int do_dm_dump_uclass(struct cmd_tbl *cmdtp, int flag, int argc,
29 static int do_dm_dump_devres(struct cmd_tbl *cmdtp, int flag, int argc,
37 static int do_dm_dump_drivers(struct cmd_tbl *cmdtp, int flag, int argc,
45 static int do_dm_dump_driver_compat(struct cmd_tbl *cmdtp, int flag, int argc,
48 dm_dump_driver_compat();
53 static int do_dm_dump_static_driver_info(struct cmd_tbl *cmdtp, int flag, int argc,
56 dm_dump_static_driver_info();
61 #if CONFIG_IS_ENABLED(SYS_LONGHELP)
62 static char dm_help_text[] =
63 "tree Dump driver model tree ('*' = activated)\n"
64 "dm uclass Dump list of instances for each uclass\n"
65 "dm devres Dump list of device resources for each device\n"
66 "dm drivers Dump list of drivers with uclass and instances\n"
67 "dm compat Dump list of drivers with compatibility strings\n"
68 "dm static Dump list of drivers with static platform data"
72 U_BOOT_CMD_WITH_SUBCMDS(dm, "Driver model low level access", dm_help_text,
73 U_BOOT_SUBCMD_MKENT(tree, 1, 1, do_dm_dump_tree),
74 U_BOOT_SUBCMD_MKENT(uclass, 1, 1, do_dm_dump_uclass),
75 U_BOOT_SUBCMD_MKENT(devres, 1, 1, do_dm_dump_devres),
76 U_BOOT_SUBCMD_MKENT(drivers, 1, 1, do_dm_dump_drivers),
77 U_BOOT_SUBCMD_MKENT(compat, 1, 1, do_dm_dump_driver_compat),
78 U_BOOT_SUBCMD_MKENT(static, 1, 1, do_dm_dump_static_driver_info));