mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] of: Search for /memory node by type, if it is not found by name
@ 2017-05-10 17:51 Andrey Panov
  2017-05-11  8:38 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Andrey Panov @ 2017-05-10 17:51 UTC (permalink / raw)
  To: barebox

Update of Rockchip dts featured changes of simple "/memory" node
to "/memory@6000000". Support this change.

Signed-off-by: Andrey Panov <rockford@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-11  8:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-10 17:51 [PATCH] of: Search for /memory node by type, if it is not found by name Andrey Panov
2017-05-11  8:38 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox