Skip to content

Commit

Permalink
arm64: add support for reserved memory defined by device tree
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marek Szyprowski authored and Grant Likely committed Mar 13, 2014
1 parent bcedb5f commit 9bf14b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm64/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions arch/arm64/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9bf14b7

Please sign in to comment.