sh: add support for linking a builtin device tree blob in the kernel
Signed-off-by: Rich Felker <dalias@libc.org>
Šī revīzija ir iekļauta:
@@ -124,13 +124,22 @@ static void __init sh_of_time_init(void)
|
||||
|
||||
static void __init sh_of_setup(char **cmdline_p)
|
||||
{
|
||||
struct device_node *root;
|
||||
|
||||
#ifdef CONFIG_USE_BUILTIN_DTB
|
||||
unflatten_and_copy_device_tree();
|
||||
#else
|
||||
unflatten_device_tree();
|
||||
#endif
|
||||
|
||||
board_time_init = sh_of_time_init;
|
||||
|
||||
sh_mv.mv_name = of_flat_dt_get_machine_name();
|
||||
if (!sh_mv.mv_name)
|
||||
sh_mv.mv_name = "Unknown SH model";
|
||||
sh_mv.mv_name = "Unknown SH model";
|
||||
root = of_find_node_by_path("/");
|
||||
if (root) {
|
||||
of_property_read_string(root, "model", &sh_mv.mv_name);
|
||||
of_node_put(root);
|
||||
}
|
||||
|
||||
sh_of_smp_probe();
|
||||
}
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user