Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+3
+1
arch/xtensa/Kconfig
··· 435 435 bool "Flattened Device Tree support" 436 436 select OF 437 437 select OF_EARLY_FLATTREE 438 + select OF_RESERVED_MEM 438 439 help 439 440 Include support for flattened device tree machine descriptions. 440 441
+2
arch/xtensa/mm/init.c
··· 25 25 #include <linux/mman.h> 26 26 #include <linux/nodemask.h> 27 27 #include <linux/mm.h> 28 + #include <linux/of_fdt.h> 28 29 29 30 #include <asm/bootparam.h> 30 31 #include <asm/page.h> ··· 49 48 else 50 49 memblock_reserve(0, 1); 51 50 51 + early_init_fdt_scan_reserved_mem(); 52 52 53 53 if (!memblock_phys_mem_size()) 54 54 panic("No memory found!\n");