[PATCH] arch: microblaze: support for reserved-memory entries in DT

From: Alvaro Gamez Machado
Date: Tue Oct 22 2019 - 04:19:48 EST


Signed-off-by: Alvaro Gamez Machado <alvaro.gamez@xxxxxxxxxx>
---
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