summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/card
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-08-15 19:27:29 +0200
committerPierre Ossman <drzeus@drzeus.cx>2007-09-23 21:24:48 +0200
commit2ba30eedec37e2f65babf4ea54233f98afbe0871 (patch)
treee93c9cefb0bbc733477e00b833fc461455096c6a /drivers/mmc/card
parentsdio: add sdio_f0_readb() and sdio_f0_writeb() (diff)
downloadlinux-2ba30eedec37e2f65babf4ea54233f98afbe0871.tar.xz
linux-2ba30eedec37e2f65babf4ea54233f98afbe0871.zip
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: Nicolas Pitre <npitre@mvista.com> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Diffstat (limited to 'drivers/mmc/card')
-rw-r--r--drivers/mmc/card/sdio_uart.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/card/sdio_uart.c b/drivers/mmc/card/sdio_uart.c
index 190120d1449a..606100212afa 100644
--- a/drivers/mmc/card/sdio_uart.c
+++ b/drivers/mmc/card/sdio_uart.c
@@ -1106,6 +1106,8 @@ static int __init sdio_uart_init(void)
tty_drv->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV;
tty_drv->init_termios = tty_std_termios;
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);
ret = tty_register_driver(tty_drv);