diff options
Diffstat (limited to 'arch/arm/mm')
-rw-r--r-- | arch/arm/mm/init.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index e5f6fc428348..26c405421f4e 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/mman.h> | 15 | #include <linux/mman.h> |
16 | #include <linux/nodemask.h> | 16 | #include <linux/nodemask.h> |
17 | #include <linux/initrd.h> | 17 | #include <linux/initrd.h> |
18 | #include <linux/of_fdt.h> | ||
18 | #include <linux/highmem.h> | 19 | #include <linux/highmem.h> |
19 | #include <linux/gfp.h> | 20 | #include <linux/gfp.h> |
20 | #include <linux/memblock.h> | 21 | #include <linux/memblock.h> |
@@ -71,6 +72,14 @@ static int __init parse_tag_initrd2(const struct tag *tag) | |||
71 | 72 | ||
72 | __tagtable(ATAG_INITRD2, parse_tag_initrd2); | 73 | __tagtable(ATAG_INITRD2, parse_tag_initrd2); |
73 | 74 | ||
75 | #ifdef CONFIG_OF_FLATTREE | ||
76 | void __init early_init_dt_setup_initrd_arch(unsigned long start, unsigned long end) | ||
77 | { | ||
78 | phys_initrd_start = start; | ||
79 | phys_initrd_size = end - start; | ||
80 | } | ||
81 | #endif /* CONFIG_OF_FLATTREE */ | ||
82 | |||
74 | /* | 83 | /* |
75 | * This keeps memory configuration data used by a couple memory | 84 | * This keeps memory configuration data used by a couple memory |
76 | * initialization functions, as well as show_mem() for the skipping | 85 | * initialization functions, as well as show_mem() for the skipping |