--- a/drivers/tty/serial/earlycon.c
+++ b/drivers/tty/serial/earlycon.c
@@ -120,9 +120,15 @@ static int __init parse_options(struct earlycon_device *device, char *options)
}
if (options) {
+ char *uartclk;
+
if (kstrtouint(options, 0, &device->baud) < 0)
pr_warn("[%s] unsupported earlycon baud rate option\n",
options);
+ uartclk = strchr(options, ',');
+ if (uartclk && kstrtouint(uartclk, 0, &port->uartclk) < 0)