* [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
* Re: [PATCH] of: Search for /memory node by type, if it is not found by name
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
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2017-05-11 8:38 UTC (permalink / raw)
To: Andrey Panov; +Cc: barebox
On Wed, May 10, 2017 at 08:51:17PM +0300, Andrey Panov wrote:
> Update of Rockchip dts featured changes of simple "/memory" node
> to "/memory@6000000". Support this change.
>
> Signed-off-by: Andrey Panov <rockford@yandex.ru>
Applied, thanks
Sascha
> ---
> 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
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
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