ARC: add support for reserved memory defined by device tree
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Tue, 26 Apr 2016 16:29:34 +0000 (19:29 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Wed, 27 Apr 2016 11:36:56 +0000 (17:06 +0530)
Enable reserved memory initialization from device tree.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/Kconfig
arch/arc/mm/init.c

index 28d47f8eb9343c7c36dad9730d852c066ec022d5..ec4791ea691196bf7137b99ead768b3cc030a056 100644 (file)
@@ -35,6 +35,7 @@ config ARC
        select NO_BOOTMEM
        select OF
        select OF_EARLY_FLATTREE
+       select OF_RESERVED_MEM
        select PERF_USE_VMALLOC
        select HAVE_DEBUG_STACKOVERFLOW
        select HAVE_GENERIC_DMA_COHERENT
index 7d2c4fbf4f22eb1402bc666c077c652c40f38361..5487d0b974005621a8cfaf119bdbf1f687d9ff7b 100644 (file)
@@ -13,6 +13,7 @@
 #ifdef CONFIG_BLK_DEV_INITRD
 #include <linux/initrd.h>
 #endif
+#include <linux/of_fdt.h>
 #include <linux/swap.h>
 #include <linux/module.h>
 #include <linux/highmem.h>
@@ -136,6 +137,9 @@ void __init setup_arch_memory(void)
                memblock_reserve(__pa(initrd_start), initrd_end - initrd_start);
 #endif
 
+       early_init_fdt_reserve_self();
+       early_init_fdt_scan_reserved_mem();
+
        memblock_dump_all();
 
        /*----------------- node/zones setup --------------------------*/
This page took 0.025618 seconds and 5 git commands to generate.