summaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-08-20 10:26:11 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-08-21 08:43:37 +0200
commit6a3ce8aecfe9634c781074f8fb66a408ad40f003 (patch)
tree1a0f1e3a0222c640252d6d6daa866cb1984dead6 /drivers/serial
parentdb04e7b448785b5b5224c858684e8fb249b2648c (diff)
downloadbarebox-6a3ce8aecfe9634c781074f8fb66a408ad40f003.tar.gz
serial: stm32: set linux_console_name
Linux names these UARTs ttySTM. Tell barebox about this, so it can be used to correctly compose the console= kernel command line argument. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/serial_stm32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/serial/serial_stm32.c b/drivers/serial/serial_stm32.c
index a84e64e..4bbfb1e 100644
--- a/drivers/serial/serial_stm32.c
+++ b/drivers/serial/serial_stm32.c
@@ -182,6 +182,7 @@ static int stm32_serial_probe(struct device_d *dev)
cdev->getc = stm32_serial_getc;
cdev->flush = stm32_serial_flush;
cdev->setbrg = stm32_serial_setbaudrate;
+ cdev->linux_console_name = "ttySTM";
if (dev->device_node) {
devname = of_alias_get(dev->device_node);