diff options
author | sonic zhang <sonic.adi@gmail.com> | 2009-12-09 15:31:28 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-02 17:43:06 -0500 |
commit | ccf68e59e93181df9353c0cc721459d18ff200b6 (patch) | |
tree | 2b532778787f5c3e37663760be6643b653662819 /drivers/serial/Kconfig | |
parent | 13dda80e48439b446d0bc9bab34b91484bc8f533 (diff) |
serial: fit blackfin uart over sport driver into common uart infrastructure
Fit blackfin uart over sport driver into common uart inftrastructure. It
is based on the early platform interfaces to get the platform data early
when the console is initilized.
1. Enable sport uart driver to change uart baud, data bit, stop bit at
runtime. Bind the index of uart device nodes to physical index of
sports.
2. Move all platform data into arch specific board files. Register
and probe platform device data in both early and normal stages.
3. Console is registered in sport uart driver as well.
4. Remove 500 us block waiting in sport tx stop code by putting a
dummy data into tx fifo to make sure the sport tx stops when all bytes
are shifted out except for the dummy data.
5. clean up a bit and fix up coding style.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/serial/Kconfig')
-rw-r--r-- | drivers/serial/Kconfig | 52 |
1 files changed, 24 insertions, 28 deletions
diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 888a0ce91c4b..cb935b1f4f6c 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig | |||
@@ -1418,38 +1418,34 @@ config SERIAL_BFIN_SPORT | |||
1418 | To compile this driver as a module, choose M here: the | 1418 | To compile this driver as a module, choose M here: the |
1419 | module will be called bfin_sport_uart. | 1419 | module will be called bfin_sport_uart. |
1420 | 1420 | ||
1421 | choice | 1421 | config SERIAL_BFIN_SPORT_CONSOLE |
1422 | prompt "Baud rate for Blackfin SPORT UART" | 1422 | bool "Console on Blackfin sport emulated uart" |
1423 | depends on SERIAL_BFIN_SPORT | 1423 | depends on SERIAL_BFIN_SPORT=y |
1424 | default SERIAL_SPORT_BAUD_RATE_57600 | 1424 | select SERIAL_CORE_CONSOLE |
1425 | help | ||
1426 | Choose a baud rate for the SPORT UART, other uart settings are | ||
1427 | 8 bit, 1 stop bit, no parity, no flow control. | ||
1428 | |||
1429 | config SERIAL_SPORT_BAUD_RATE_115200 | ||
1430 | bool "115200" | ||
1431 | |||
1432 | config SERIAL_SPORT_BAUD_RATE_57600 | ||
1433 | bool "57600" | ||
1434 | 1425 | ||
1435 | config SERIAL_SPORT_BAUD_RATE_38400 | 1426 | config SERIAL_BFIN_SPORT0_UART |
1436 | bool "38400" | 1427 | bool "Enable UART over SPORT0" |
1428 | depends on SERIAL_BFIN_SPORT && !(BF542 || BF542M || BF544 || BF544M) | ||
1429 | help | ||
1430 | Enable UART over SPORT0 | ||
1437 | 1431 | ||
1438 | config SERIAL_SPORT_BAUD_RATE_19200 | 1432 | config SERIAL_BFIN_SPORT1_UART |
1439 | bool "19200" | 1433 | bool "Enable UART over SPORT1" |
1434 | depends on SERIAL_BFIN_SPORT | ||
1435 | help | ||
1436 | Enable UART over SPORT1 | ||
1440 | 1437 | ||
1441 | config SERIAL_SPORT_BAUD_RATE_9600 | 1438 | config SERIAL_BFIN_SPORT2_UART |
1442 | bool "9600" | 1439 | bool "Enable UART over SPORT2" |
1443 | endchoice | 1440 | depends on SERIAL_BFIN_SPORT && (BF54x || BF538 || BF539) |
1441 | help | ||
1442 | Enable UART over SPORT2 | ||
1444 | 1443 | ||
1445 | config SPORT_BAUD_RATE | 1444 | config SERIAL_BFIN_SPORT3_UART |
1446 | int | 1445 | bool "Enable UART over SPORT3" |
1447 | depends on SERIAL_BFIN_SPORT | 1446 | depends on SERIAL_BFIN_SPORT && (BF54x || BF538 || BF539) |
1448 | default 115200 if (SERIAL_SPORT_BAUD_RATE_115200) | 1447 | help |
1449 | default 57600 if (SERIAL_SPORT_BAUD_RATE_57600) | 1448 | Enable UART over SPORT3 |
1450 | default 38400 if (SERIAL_SPORT_BAUD_RATE_38400) | ||
1451 | default 19200 if (SERIAL_SPORT_BAUD_RATE_19200) | ||
1452 | default 9600 if (SERIAL_SPORT_BAUD_RATE_9600) | ||
1453 | 1449 | ||
1454 | config SERIAL_TIMBERDALE | 1450 | config SERIAL_TIMBERDALE |
1455 | tristate "Support for timberdale UART" | 1451 | tristate "Support for timberdale UART" |