diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-03-04 12:24:32 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:30:52 -0400 |
commit | 5eaf7a21be3f7f81573cf26541b8f9cc786fb67d (patch) | |
tree | 2eede7e8e7df55c4b9c45eb94388b2a2f060c94d /arch/mips/tx4927 | |
parent | cdaed73afb61913ee5115aa38b0c35ecb0513f50 (diff) |
Use new txx9 serial driver.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/tx4927')
-rw-r--r-- | arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c b/arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c index fc0720599fd9..990fcb294bab 100644 --- a/arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c +++ b/arch/mips/tx4927/toshiba_rbtx4927/toshiba_rbtx4927_setup.c | |||
@@ -77,6 +77,11 @@ | |||
77 | #include <linux/hdreg.h> | 77 | #include <linux/hdreg.h> |
78 | #include <linux/ide.h> | 78 | #include <linux/ide.h> |
79 | #endif | 79 | #endif |
80 | #ifdef CONFIG_SERIAL_TXX9 | ||
81 | #include <linux/tty.h> | ||
82 | #include <linux/serial.h> | ||
83 | #include <linux/serial_core.h> | ||
84 | #endif | ||
80 | 85 | ||
81 | #undef TOSHIBA_RBTX4927_SETUP_DEBUG | 86 | #undef TOSHIBA_RBTX4927_SETUP_DEBUG |
82 | 87 | ||
@@ -920,12 +925,30 @@ void __init toshiba_rbtx4927_setup(void) | |||
920 | 925 | ||
921 | #endif /* CONFIG_PCI */ | 926 | #endif /* CONFIG_PCI */ |
922 | 927 | ||
928 | #ifdef CONFIG_SERIAL_TXX9 | ||
929 | { | ||
930 | extern int early_serial_txx9_setup(struct uart_port *port); | ||
931 | int i; | ||
932 | struct uart_port req; | ||
933 | for(i = 0; i < 2; i++) { | ||
934 | memset(&req, 0, sizeof(req)); | ||
935 | req.line = i; | ||
936 | req.iotype = UPIO_MEM; | ||
937 | req.membase = (char *)(0xff1ff300 + i * 0x100); | ||
938 | req.mapbase = 0xff1ff300 + i * 0x100; | ||
939 | req.irq = 32 + i; | ||
940 | req.flags |= UPF_BUGGY_UART /*HAVE_CTS_LINE*/; | ||
941 | req.uartclk = 50000000; | ||
942 | early_serial_txx9_setup(&req); | ||
943 | } | ||
944 | } | ||
923 | #ifdef CONFIG_SERIAL_TXX9_CONSOLE | 945 | #ifdef CONFIG_SERIAL_TXX9_CONSOLE |
924 | argptr = prom_getcmdline(); | 946 | argptr = prom_getcmdline(); |
925 | if (strstr(argptr, "console=") == NULL) { | 947 | if (strstr(argptr, "console=") == NULL) { |
926 | strcat(argptr, " console=ttyS0,38400"); | 948 | strcat(argptr, " console=ttyS0,38400"); |
927 | } | 949 | } |
928 | #endif | 950 | #endif |
951 | #endif | ||
929 | 952 | ||
930 | #ifdef CONFIG_ROOT_NFS | 953 | #ifdef CONFIG_ROOT_NFS |
931 | argptr = prom_getcmdline(); | 954 | argptr = prom_getcmdline(); |