mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] arch: microblaze: support for reserved-memory entries in DT
@ 2019-10-22  8:19 Alvaro Gamez Machado
  2019-10-23  7:59 ` Michal Simek
  0 siblings, 1 reply; 4+ messages in thread
From: Alvaro Gamez Machado @ 2019-10-22  8:19 UTC (permalink / raw)
  To: Michal Simek, Andrew Morton, linux-kernel; +Cc: Alvaro Gamez Machado

Signed-off-by: Alvaro Gamez Machado <alvaro.gamez@hazent.com>
---
 arch/microblaze/mm/init.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/microblaze/mm/init.c b/arch/microblaze/mm/init.c
index a015a951c8b7..928c5c2816e4 100644
--- a/arch/microblaze/mm/init.c
+++ b/arch/microblaze/mm/init.c
@@ -17,6 +17,8 @@
 #include <linux/slab.h>
 #include <linux/swap.h>
 #include <linux/export.h>
+#include <linux/of_fdt.h>
+#include <linux/of.h>
 
 #include <asm/page.h>
 #include <asm/mmu_context.h>
@@ -188,6 +190,9 @@ void __init setup_memory(void)
 
 void __init mem_init(void)
 {
+	early_init_fdt_reserve_self();
+	early_init_fdt_scan_reserved_mem();
+
 	high_memory = (void *)__va(memory_start + lowmem_size - 1);
 
 	/* this will put all memory onto the freelists */
-- 
2.23.0


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

end of thread, other threads:[~2019-10-23 10:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-22  8:19 [PATCH] arch: microblaze: support for reserved-memory entries in DT Alvaro Gamez Machado
2019-10-23  7:59 ` Michal Simek
2019-10-23  8:17   ` Alvaro Gamez Machado
2019-10-23 10:23     ` Michal Simek

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

all inboxes | Powered by JetHome®