[PATCH] serial: stm32: set linux_console_name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
---
 drivers/serial/serial_stm32.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/serial/serial_stm32.c b/drivers/serial/serial_stm32.c
index a84e64e974e7..4bbfb1eef72c 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);
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux