summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/mm
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2016-07-19 00:37:05 +0300
committerMax Filippov <jcmvbkbc@gmail.com>2016-07-24 06:34:00 +0300
commit4e7c84ec045921dacc78d36295e2e61390249665 (patch)
treec3b2473dee4bf875b1a024d5f7e70b0dd3a9113e /arch/xtensa/mm
parent0e46c1115f5816949220d62dd3ff04aa68e7ac6b (diff)
downloadop-kernel-dev-4e7c84ec045921dacc78d36295e2e61390249665.zip
op-kernel-dev-4e7c84ec045921dacc78d36295e2e61390249665.tar.gz
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>
Diffstat (limited to 'arch/xtensa/mm')
-rw-r--r--arch/xtensa/mm/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/xtensa/mm/init.c b/arch/xtensa/mm/init.c
index 3ee7e29..80e4cfb 100644
--- a/arch/xtensa/mm/init.c
+++ b/arch/xtensa/mm/init.c
@@ -25,6 +25,7 @@
#include <linux/mman.h>
#include <linux/nodemask.h>
#include <linux/mm.h>
+#include <linux/of_fdt.h>
#include <asm/bootparam.h>
#include <asm/page.h>
@@ -48,6 +49,7 @@ void __init bootmem_init(void)
else
memblock_reserve(0, 1);
+ early_init_fdt_scan_reserved_mem();
if (!memblock_phys_mem_size())
panic("No memory found!\n");
OpenPOWER on IntegriCloud