|
@@ -282,7 +282,12 @@ int __init of_setup_earlycon(const struct earlycon_id *match,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ val = of_get_flat_dt_prop(node, "current-speed", NULL);
|
|
|
|
+ if (val)
|
|
|
|
+ early_console_dev.baud = be32_to_cpu(*val);
|
|
|
|
+
|
|
if (options) {
|
|
if (options) {
|
|
|
|
+ early_console_dev.baud = simple_strtoul(options, NULL, 0);
|
|
strlcpy(early_console_dev.options, options,
|
|
strlcpy(early_console_dev.options, options,
|
|
sizeof(early_console_dev.options));
|
|
sizeof(early_console_dev.options));
|
|
}
|
|
}
|