diff options
author | Alexey Brodkin <Alexey.Brodkin@synopsys.com> | 2016-04-26 19:29:34 +0300 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2016-04-27 17:06:56 +0530 |
commit | 1b10cb21d888c021bedbe678f7c26aee1bf04ffa (patch) | |
tree | 369fa1ab7e038c4c2c768eca83e0316d7c595125 /arch/arc/mm | |
parent | 32ed9a0e0ddcf58ef343bcb6ae44ee60d1ee31ce (diff) | |
download | op-kernel-dev-1b10cb21d888c021bedbe678f7c26aee1bf04ffa.zip op-kernel-dev-1b10cb21d888c021bedbe678f7c26aee1bf04ffa.tar.gz |
ARC: add support for reserved memory defined by device tree
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>
Diffstat (limited to 'arch/arc/mm')
-rw-r--r-- | arch/arc/mm/init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arc/mm/init.c b/arch/arc/mm/init.c index 7d2c4fb..5487d0b 100644 --- a/arch/arc/mm/init.c +++ b/arch/arc/mm/init.c @@ -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 --------------------------*/ |