[PATCH] of: Search for /memory node by type, if it is not found by name
Andrey Panov
rockford at yandex.ru
Wed May 10 10:51:17 PDT 2017
Update of Rockchip dts featured changes of simple "/memory" node
to "/memory at 6000000". Support this change.
Signed-off-by: Andrey Panov <rockford at yandex.ru>
---
drivers/of/base.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/of/base.c b/drivers/of/base.c
index c9bdd9181..33f61622a 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1910,6 +1910,8 @@ int of_probe(void)
barebox_set_model(of_model);
memory = of_find_node_by_path("/memory");
+ if (!memory)
+ memory = of_find_node_by_type(root_node, "memory");
if (memory)
of_add_memory(memory, false);
--
2.11.0
More information about the barebox
mailing list