aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass2015-06-23 15:38:35 -0600
committerSimon Glass2015-07-21 17:39:22 -0600
commit304fbef156b00d8d7005c8b156e64a6632d45008 (patch)
treeb5de5bdd89b0ec45b3b4ed7cd175423fb0014b79 /include
parentda229e4e57b7d028cf01d52ac70832a90453e289 (diff)
dm: Move the tree/uclass dump code into its own file
In SPL it is sometimes useful to be able to obtain a dump of the current driver model state. Since commands are not available, provide a way to directly call the functions to output this information. Adjust the existing commands to use these functions. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/dm/util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/dm/util.h b/include/dm/util.h
index 0cec17b52a4..7dbed6793f8 100644
--- a/include/dm/util.h
+++ b/include/dm/util.h
@@ -33,4 +33,10 @@ struct list_head;
*/
int list_count_items(struct list_head *head);
+/* Dump out a tree of all devices */
+void dm_dump_all(void);
+
+/* Dump out a list of uclasses and their devices */
+void dm_dump_uclass(void);
+
#endif