diff options
Diffstat (limited to 'arch/mips/lantiq/prom.c')
-rw-r--r-- | arch/mips/lantiq/prom.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/arch/mips/lantiq/prom.c b/arch/mips/lantiq/prom.c index 7447d322d14e..39ab3e786e59 100644 --- a/arch/mips/lantiq/prom.c +++ b/arch/mips/lantiq/prom.c | |||
@@ -36,6 +36,11 @@ const char *get_system_type(void) | |||
36 | return soc_info.sys_type; | 36 | return soc_info.sys_type; |
37 | } | 37 | } |
38 | 38 | ||
39 | int ltq_soc_type(void) | ||
40 | { | ||
41 | return soc_info.type; | ||
42 | } | ||
43 | |||
39 | void prom_free_prom_memory(void) | 44 | void prom_free_prom_memory(void) |
40 | { | 45 | { |
41 | } | 46 | } |
@@ -72,6 +77,8 @@ void __init plat_mem_setup(void) | |||
72 | * parsed resulting in our memory appearing | 77 | * parsed resulting in our memory appearing |
73 | */ | 78 | */ |
74 | __dt_setup_arch(__dtb_start); | 79 | __dt_setup_arch(__dtb_start); |
80 | |||
81 | strlcpy(arcs_cmdline, boot_command_line, COMMAND_LINE_SIZE); | ||
75 | } | 82 | } |
76 | 83 | ||
77 | void __init device_tree_init(void) | 84 | void __init device_tree_init(void) |
@@ -97,16 +104,7 @@ void __init prom_init(void) | |||
97 | 104 | ||
98 | int __init plat_of_setup(void) | 105 | int __init plat_of_setup(void) |
99 | { | 106 | { |
100 | static struct of_device_id of_ids[3]; | 107 | return __dt_register_buses(soc_info.compatible, "simple-bus"); |
101 | |||
102 | if (!of_have_populated_dt()) | ||
103 | panic("device tree not present"); | ||
104 | |||
105 | strlcpy(of_ids[0].compatible, soc_info.compatible, | ||
106 | sizeof(of_ids[0].compatible)); | ||
107 | strncpy(of_ids[1].compatible, "simple-bus", | ||
108 | sizeof(of_ids[1].compatible)); | ||
109 | return of_platform_populate(NULL, of_ids, NULL, NULL); | ||
110 | } | 108 | } |
111 | 109 | ||
112 | arch_initcall(plat_of_setup); | 110 | arch_initcall(plat_of_setup); |