]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: core: Set up driver model for OF_PLATDATA_INST
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 04:25:17 +0000 (17:25 +1300)
committerSimon Glass <sjg@chromium.org>
Mon, 22 Mar 2021 06:23:28 +0000 (19:23 +1300)
commit967a7d483ac5b9075d83c59507c8020636000842
tree4381c72e1499da6b2cfccab735d790a2b43792f8
parent3fa9f553c0c0418b9abf93c2f33a44c98380beaf
dm: core: Set up driver model for OF_PLATDATA_INST

With this we don't need to scan and bind drivers, not even the root
device. We just need to locate the root device that was set up at build
time, then set our root in global_data to point to it.

Update the code to handle this case.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/root.c