arm64: add support for reserved memory defined by device tree
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 28 Feb 2014 13:42:55 +0000 (14:42 +0100)
committerGrant Likely <grant.likely@linaro.org>
Thu, 13 Mar 2014 10:53:07 +0000 (10:53 +0000)
Enable reserved memory initialization from device tree.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
arch/arm64/Kconfig
arch/arm64/mm/init.c

index 27bbcfc7202a8df09f6ec35cd3939f0f5c26edfd..6abf15407dca35f8ca89ac3c49d1324ae9f02148 100644 (file)
@@ -43,6 +43,7 @@ config ARM64
        select NO_BOOTMEM
        select OF
        select OF_EARLY_FLATTREE
+       select OF_RESERVED_MEM
        select PERF_USE_VMALLOC
        select POWER_RESET
        select POWER_SUPPLY
index d0b4c2efda90aa1ba8eaf2eabe8a977cb0fe2c9c..3fb8d50dfdaa0737032ad9e37647332eab164b70 100644 (file)
@@ -160,6 +160,7 @@ void __init arm64_memblock_init(void)
                memblock_reserve(base, size);
        }
 
+       early_init_fdt_scan_reserved_mem();
        dma_contiguous_reserve(0);
 
        memblock_allow_resize();