From: Eric Berryman <eric.berryman@gm...> - 2007-10-10 12:15:44
Can anyone explain to me why I can't set the divisor on /dev/ttyS2
with setserial, but I can on /dev/ttyS1? Is there another way to
write to the resisters?
Everything looks normal for /dev/ttyS2:
# cat /proc/gpio/GPIO4
46 AF2 in set
47 AF1 out set
48 AF2 out set
49 AF2 out set
And I can see some communication on STUART (although at the wrong baud rate):
# more /proc/tty/driver/PXA\ serial
serinfo:1.0 driver revision:
0: uart:FFUART mmio:0x40100000 irq:15 tx:836 rx:0 RTS|CTS|DTR|DSR|CD|RI
1: uart:BTUART mmio:0x40200000 irq:14 tx:24 rx:1 brk:1 CTS
2: uart:STUART mmio:0x40700000 irq:13 tx:40 rx:2 brk:2
3: uart:HWUART mmio:0x41600000 irq:0 tx:0 rx:0
> I was wondering if anyone could help me understand the STUART serial
> port exposed on the console-st board /dev/ttyS2. I would like to use
> this port to talk to a device at a baud rate of 28800. For some
> reason I am unable to use setserial (or stty) on /dev/ttyS2 to set the
> baud rate, although I can on /dev/ttyS1 ... but that's not connected
> to anything the console-st board. Any help would be greatly
> appreciated. Do I need to initialize the port?
> /dev/ttyS2, Line 2, UART: undefined, Port: 0x0000, IRQ: 13
> Baud_base: 921600, close_delay: 50, divisor: 0
> closing_wait: 3000
> Flags: spd_normal
> Thank you!
Get latest updates about Open Source Projects, Conferences and News.