aboutsummaryrefslogtreecommitdiffstats
path: root/arch/c6x/kernel/devicetree.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/c6x/kernel/devicetree.c')
-rw-r--r--arch/c6x/kernel/devicetree.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/arch/c6x/kernel/devicetree.c b/arch/c6x/kernel/devicetree.c
index 9e15ab9199b2..fa3e5741514e 100644
--- a/arch/c6x/kernel/devicetree.c
+++ b/arch/c6x/kernel/devicetree.c
@@ -10,37 +10,8 @@
10 * 10 *
11 */ 11 */
12#include <linux/init.h> 12#include <linux/init.h>
13#include <linux/of.h>
14#include <linux/of_fdt.h>
15#include <linux/initrd.h>
16#include <linux/memblock.h> 13#include <linux/memblock.h>
17 14
18void __init early_init_devtree(void *params)
19{
20 /* Setup flat device-tree pointer */
21 initial_boot_params = params;
22
23 /* Retrieve various informations from the /chosen node of the
24 * device-tree, including the platform type, initrd location and
25 * size and more ...
26 */
27 of_scan_flat_dt(early_init_dt_scan_chosen, c6x_command_line);
28
29 /* Scan memory nodes and rebuild MEMBLOCKs */
30 of_scan_flat_dt(early_init_dt_scan_root, NULL);
31 of_scan_flat_dt(early_init_dt_scan_memory, NULL);
32}
33
34
35#ifdef CONFIG_BLK_DEV_INITRD
36void __init early_init_dt_setup_initrd_arch(u64 start, u64 end)
37{
38 initrd_start = (unsigned long)__va(start);
39 initrd_end = (unsigned long)__va(end);
40 initrd_below_start_ok = 1;
41}
42#endif
43
44void __init early_init_dt_add_memory_arch(u64 base, u64 size) 15void __init early_init_dt_add_memory_arch(u64 base, u64 size)
45{ 16{
46 c6x_add_memory(base, size); 17 c6x_add_memory(base, size);