aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/txx9/generic/setup_tx4927.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/txx9/generic/setup_tx4927.c')
-rw-r--r--arch/mips/txx9/generic/setup_tx4927.c23
1 files changed, 6 insertions, 17 deletions
diff --git a/arch/mips/txx9/generic/setup_tx4927.c b/arch/mips/txx9/generic/setup_tx4927.c
index b42c85573d0d..f80d4b7a694d 100644
--- a/arch/mips/txx9/generic/setup_tx4927.c
+++ b/arch/mips/txx9/generic/setup_tx4927.c
@@ -13,7 +13,6 @@
13#include <linux/init.h> 13#include <linux/init.h>
14#include <linux/ioport.h> 14#include <linux/ioport.h>
15#include <linux/delay.h> 15#include <linux/delay.h>
16#include <linux/serial_core.h>
17#include <linux/param.h> 16#include <linux/param.h>
18#include <asm/txx9irq.h> 17#include <asm/txx9irq.h>
19#include <asm/txx9tmr.h> 18#include <asm/txx9tmr.h>
@@ -178,22 +177,12 @@ void __init tx4927_time_init(unsigned int tmrnr)
178 TXX9_IMCLK); 177 TXX9_IMCLK);
179} 178}
180 179
181void __init tx4927_setup_serial(void) 180void __init tx4927_sio_init(unsigned int sclk, unsigned int cts_mask)
182{ 181{
183#ifdef CONFIG_SERIAL_TXX9
184 int i; 182 int i;
185 struct uart_port req; 183
186 184 for (i = 0; i < 2; i++)
187 for (i = 0; i < 2; i++) { 185 txx9_sio_init(TX4927_SIO_REG(i) & 0xfffffffffULL,
188 memset(&req, 0, sizeof(req)); 186 TXX9_IRQ_BASE + TX4927_IR_SIO(i),
189 req.line = i; 187 i, sclk, (1 << i) & cts_mask);
190 req.iotype = UPIO_MEM;
191 req.membase = (unsigned char __iomem *)TX4927_SIO_REG(i);
192 req.mapbase = TX4927_SIO_REG(i) & 0xfffffffffULL;
193 req.irq = TXX9_IRQ_BASE + TX4927_IR_SIO(i);
194 req.flags |= UPF_BUGGY_UART /*HAVE_CTS_LINE*/;
195 req.uartclk = TXX9_IMCLK;
196 early_serial_txx9_setup(&req);
197 }
198#endif /* CONFIG_SERIAL_TXX9 */
199} 188}