Skip to content

Commit 4e7c84e

Browse files
committed
xtensa: support reserved-memory DT node
This allows reserving regions of physical memory from the device tree. See Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt for more details. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
1 parent 0e46c11 commit 4e7c84e

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎arch/xtensa/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ config USE_OF
435435
bool "Flattened Device Tree support"
436436
select OF
437437
select OF_EARLY_FLATTREE
438+
select OF_RESERVED_MEM
438439
help
439440
Include support for flattened device tree machine descriptions.
440441

‎arch/xtensa/mm/init.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <linux/mman.h>
2626
#include <linux/nodemask.h>
2727
#include <linux/mm.h>
28+
#include <linux/of_fdt.h>
2829

2930
#include <asm/bootparam.h>
3031
#include <asm/page.h>
@@ -48,6 +49,7 @@ void __init bootmem_init(void)
4849
else
4950
memblock_reserve(0, 1);
5051

52+
early_init_fdt_scan_reserved_mem();
5153

5254
if (!memblock_phys_mem_size())
5355
panic("No memory found!\n");

0 commit comments

Comments
 (0)