i want to use ttyS1 to transmit and receive data.(my program worked very well by ttyS0)
in /dev, i can find ttyS0 and ttyS1
when boot the kernel, it shows :
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO map 0x1c20000 mem 0xfbc20000 (irq = 40) is a 16550A
serial8250.0: ttyS1 at MMIO map 0x1d06000 mem 0xfbd06000 (irq = 41) is a 16550A
when i transmit some data by ttyS1,it shows:
serinfo:1.0 driver revision:
0: uart:16550A mmio:0x01C20000 irq:40 membase 0xFBC20000 tx:5764 rx:53 RTS|CTS|D
TR|DSR
1: uart:16550A mmio:0x01D06000 irq:41 membase 0xFBD06000 tx:19104 rx:0 RTS|CTS|D
TR|DSR
it transmit some dates, but i receive nothing!!!
i using the default kernel, someone said maybe i must change the following file,
/ti-davinci/linux-2.6.18_pro500/arch/arm/mach-davinci/mux_cfg.c
in my system, it shows as follow:
265 MUX_CFG("UART0_RXD", 3, 20, 1, 1, 0)
266 MUX_CFG("UART0_TXD", 3, 19, 1, 1, 0)
267 MUX_CFG("UART1_RXD", 3, 17, 3, 2, 0)
269 MUX_CFG("UART1_TXD", 3, 15, 3, 2, 0)
271 MUX_CFG("UART1_RTS", 3, 23, 3, 1, 0)
272 MUX_CFG("UART1_CTS", 3, 21, 3, 1, 0)
273
274 MUX_CFG("EMAC_TX_EN", 3, 17, 3, 1, 0)
275 MUX_CFG("EMAC_TX_CLK", 3, 15, 3, 1, 0)
so who can tell me how to resolve this problem, how to use ttyS1
thx