diff options
Diffstat (limited to 'drivers/tty/serial/earlycon.c')
-rw-r--r-- | drivers/tty/serial/earlycon.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/tty/serial/earlycon.c b/drivers/tty/serial/earlycon.c index 22683393a0f2..c14873b67803 100644 --- a/drivers/tty/serial/earlycon.c +++ b/drivers/tty/serial/earlycon.c | |||
@@ -246,7 +246,6 @@ int __init of_setup_earlycon(const struct earlycon_id *match, | |||
246 | return -ENXIO; | 246 | return -ENXIO; |
247 | } | 247 | } |
248 | port->mapbase = addr; | 248 | port->mapbase = addr; |
249 | port->uartclk = BASE_BAUD * 16; | ||
250 | 249 | ||
251 | val = of_get_flat_dt_prop(node, "reg-offset", NULL); | 250 | val = of_get_flat_dt_prop(node, "reg-offset", NULL); |
252 | if (val) | 251 | if (val) |
@@ -281,6 +280,10 @@ int __init of_setup_earlycon(const struct earlycon_id *match, | |||
281 | if (val) | 280 | if (val) |
282 | early_console_dev.baud = be32_to_cpu(*val); | 281 | early_console_dev.baud = be32_to_cpu(*val); |
283 | 282 | ||
283 | val = of_get_flat_dt_prop(node, "clock-frequency", NULL); | ||
284 | if (val) | ||
285 | port->uartclk = be32_to_cpu(*val); | ||
286 | |||
284 | if (options) { | 287 | if (options) { |
285 | early_console_dev.baud = simple_strtoul(options, NULL, 0); | 288 | early_console_dev.baud = simple_strtoul(options, NULL, 0); |
286 | strlcpy(early_console_dev.options, options, | 289 | strlcpy(early_console_dev.options, options, |