Procházet zdrojové kódy

arm: add support for reserved memory defined by device tree

Enable reserved memory initialization from device tree.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
Marek Szyprowski před 11 roky
rodič
revize
bcedb5f9bd
2 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 1 0
      arch/arm/Kconfig
  2. 2 0
      arch/arm/mm/init.c

+ 1 - 0
arch/arm/Kconfig

@@ -1918,6 +1918,7 @@ config USE_OF
 	select IRQ_DOMAIN
 	select IRQ_DOMAIN
 	select OF
 	select OF
 	select OF_EARLY_FLATTREE
 	select OF_EARLY_FLATTREE
+	select OF_RESERVED_MEM
 	help
 	help
 	  Include support for flattened device tree machine descriptions.
 	  Include support for flattened device tree machine descriptions.
 
 

+ 2 - 0
arch/arm/mm/init.c

@@ -323,6 +323,8 @@ void __init arm_memblock_init(struct meminfo *mi,
 	if (mdesc->reserve)
 	if (mdesc->reserve)
 		mdesc->reserve();
 		mdesc->reserve();
 
 
+	early_init_fdt_scan_reserved_mem();
+
 	/*
 	/*
 	 * reserve memory for DMA contigouos allocations,
 	 * reserve memory for DMA contigouos allocations,
 	 * must come from DMA area inside low memory
 	 * must come from DMA area inside low memory