Skip to content

Commit 68cbfae

Browse files
author
Michal Simek
committed
microblaze: Add support for reserved memory defined by DT
In DT reserved memory nodes can be added as is described by Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt but Microblaze didn't have a support for it. The similar change was done for ARC by commit 1b10cb2 ("ARC: add support for reserved memory defined by device tree"). It is pretty much enough to call early_init_fdt_scan_reserved_mem(). Microblaze is not using initial_boot_params that's why there is no need to call early_init_fdt_reserve_self(). Signed-off-by: Michal Simek <[email protected]> Link: https://lore.kernel.org/r/da4395776bf0de7207767abcc8a5df05bf411816.1645795048.git.michal.simek@xilinx.com
1 parent e4c70fc commit 68cbfae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/microblaze/mm/init.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <linux/kernel.h>
1414
#include <linux/mm.h> /* mem_init */
1515
#include <linux/initrd.h>
16+
#include <linux/of_fdt.h>
1617
#include <linux/pagemap.h>
1718
#include <linux/pfn.h>
1819
#include <linux/slab.h>
@@ -261,6 +262,8 @@ asmlinkage void __init mmu_init(void)
261262

262263
parse_early_param();
263264

265+
early_init_fdt_scan_reserved_mem();
266+
264267
/* CMA initialization */
265268
dma_contiguous_reserve(memory_start + lowmem_size - 1);
266269

0 commit comments

Comments
 (0)