Commit 2ba30eed authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Pierre Ossman

sdio: add default c_ispeed/c_ospeed values to sdio_uart driver

Note that the default baudrate is 4800 instead of 9600 as a convenience
because that's what GPS devices want which is still the main use for
this driver.
Signed-off-by: default avatarNicolas Pitre <npitre@mvista.com>
Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent 7806cdb4
...@@ -1106,6 +1106,8 @@ static int __init sdio_uart_init(void) ...@@ -1106,6 +1106,8 @@ static int __init sdio_uart_init(void)
tty_drv->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV; tty_drv->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV;
tty_drv->init_termios = tty_std_termios; tty_drv->init_termios = tty_std_termios;
tty_drv->init_termios.c_cflag = B4800 | CS8 | CREAD | HUPCL | CLOCAL; tty_drv->init_termios.c_cflag = B4800 | CS8 | CREAD | HUPCL | CLOCAL;
tty_drv->init_termios.c_ispeed = 4800;
tty_drv->init_termios.c_ospeed = 4800;
tty_set_operations(tty_drv, &sdio_uart_ops); tty_set_operations(tty_drv, &sdio_uart_ops);
ret = tty_register_driver(tty_drv); ret = tty_register_driver(tty_drv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment