diff options
Diffstat (limited to 'arch/microblaze/kernel/prom.c')
-rw-r--r-- | arch/microblaze/kernel/prom.c | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/arch/microblaze/kernel/prom.c b/arch/microblaze/kernel/prom.c index 0c4453f134cb..abdfb10e7eca 100644 --- a/arch/microblaze/kernel/prom.c +++ b/arch/microblaze/kernel/prom.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <linux/debugfs.h> | 30 | #include <linux/debugfs.h> |
31 | #include <linux/irq.h> | 31 | #include <linux/irq.h> |
32 | #include <linux/memblock.h> | 32 | #include <linux/memblock.h> |
33 | #include <linux/of_fdt.h> | ||
33 | 34 | ||
34 | #include <asm/prom.h> | 35 | #include <asm/prom.h> |
35 | #include <asm/page.h> | 36 | #include <asm/page.h> |
@@ -41,11 +42,6 @@ | |||
41 | #include <asm/sections.h> | 42 | #include <asm/sections.h> |
42 | #include <asm/pci-bridge.h> | 43 | #include <asm/pci-bridge.h> |
43 | 44 | ||
44 | void __init early_init_dt_add_memory_arch(u64 base, u64 size) | ||
45 | { | ||
46 | memblock_add(base, size); | ||
47 | } | ||
48 | |||
49 | #ifdef CONFIG_EARLY_PRINTK | 45 | #ifdef CONFIG_EARLY_PRINTK |
50 | static char *stdout; | 46 | static char *stdout; |
51 | 47 | ||
@@ -106,21 +102,10 @@ void __init early_init_devtree(void *params) | |||
106 | { | 102 | { |
107 | pr_debug(" -> early_init_devtree(%p)\n", params); | 103 | pr_debug(" -> early_init_devtree(%p)\n", params); |
108 | 104 | ||
109 | /* Setup flat device-tree pointer */ | 105 | early_init_dt_scan(params); |
110 | initial_boot_params = params; | 106 | if (!strlen(boot_command_line)) |
111 | 107 | strlcpy(boot_command_line, cmd_line, COMMAND_LINE_SIZE); | |
112 | /* Retrieve various informations from the /chosen node of the | ||
113 | * device-tree, including the platform type, initrd location and | ||
114 | * size, TCE reserve, and more ... | ||
115 | */ | ||
116 | of_scan_flat_dt(early_init_dt_scan_chosen, cmd_line); | ||
117 | |||
118 | /* Scan memory nodes and rebuild MEMBLOCKs */ | ||
119 | of_scan_flat_dt(early_init_dt_scan_root, NULL); | ||
120 | of_scan_flat_dt(early_init_dt_scan_memory, NULL); | ||
121 | 108 | ||
122 | /* Save command line for /proc/cmdline and then parse parameters */ | ||
123 | strlcpy(boot_command_line, cmd_line, COMMAND_LINE_SIZE); | ||
124 | parse_early_param(); | 109 | parse_early_param(); |
125 | 110 | ||
126 | memblock_allow_resize(); | 111 | memblock_allow_resize(); |
@@ -130,15 +115,6 @@ void __init early_init_devtree(void *params) | |||
130 | pr_debug(" <- early_init_devtree()\n"); | 115 | pr_debug(" <- early_init_devtree()\n"); |
131 | } | 116 | } |
132 | 117 | ||
133 | #ifdef CONFIG_BLK_DEV_INITRD | ||
134 | void __init early_init_dt_setup_initrd_arch(u64 start, u64 end) | ||
135 | { | ||
136 | initrd_start = (unsigned long)__va(start); | ||
137 | initrd_end = (unsigned long)__va(end); | ||
138 | initrd_below_start_ok = 1; | ||
139 | } | ||
140 | #endif | ||
141 | |||
142 | /******* | 118 | /******* |
143 | * | 119 | * |
144 | * New implementation of the OF "find" APIs, return a refcounted | 120 | * New implementation of the OF "find" APIs, return a refcounted |