summaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-19 02:09:08 (GMT)
committerSimon Glass <sjg@chromium.org>2017-06-01 13:03:08 (GMT)
commit19c8205e6887d5e47c7dac6cd85d0376411b5444 (patch)
tree88f5788dbe0ad8ef62df010d636b615ee1ec9dfe /include/dm
parent45a26867e8158d0338ba5b99d21989a72d423209 (diff)
downloadu-boot-fsl-qoriq-19c8205e6887d5e47c7dac6cd85d0376411b5444.tar.xz
dm: core: Scan the live tree when setting up driver model
When starting up driver model with a live tree we need to scan the tree for devices. Add code to handle this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/root.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/dm/root.h b/include/dm/root.h
index 186cf8b..50a6011 100644
--- a/include/dm/root.h
+++ b/include/dm/root.h
@@ -87,9 +87,10 @@ int dm_init_and_scan(bool pre_reloc_only);
* This function will initialize roots of driver tree and class tree.
* This needs to be called before anything uses the DM
*
+ * @of_live: Enable live device tree
* @return 0 if OK, -ve on error
*/
-int dm_init(void);
+int dm_init(bool of_live);
/**
* dm_uninit - Uninitialise Driver Model structures