Hi all,
    I am trying to use UART1 of DM355 (DC3 connector, pin 19 & 21).
At first, I booted the original kernel (came with dvsdk_1_30_00_40) and can see this in the boot message
        Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
        Registering platform device 'serial8250'. Parent at platform
        ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
        ttyS1 at MMIO 0x1c20400 (irq = 41) is a 16550A
        ttyS2 at MMIO 0x1e06000 (irq = 14) is a 16550A

so, it seems that UART1 was enabled already, I wrote a small program that opens /dev/tts/1 and writes a string to that UART1; put a scope at UART1's TX pin (DC3 - pin 19), I cannot see any signal though the program worked without any error message.
   Then I tried this:
[EMAIL PROTECTED]:~# cat /proc/interrupts
           CPU0
  0:          0   vpfe_capture
  4:          0   dm644xh3a_af, dm644xh3a_aew
  5:          0   dm355_ipipe
  8:      31854   davinci_osd
 12:          1   musb_hdrc
 16:          0   EDMA Completion
 17:          0   EDMA CC Err
 18:          0   EDMA TC Error
 19:          0   EDMA TC Error
 26:        984   mmc
 27:        984   mmc
 32:          2   free-run counter
 33:          0   high-res timer
 35:      49173   system tick
 39:        151   i2c
 40:        450   serial
 42:          0   dm_spi
 45:      10090   eth0
Err:          0
[EMAIL PROTECTED]:~#
there's only interrupt for UART0, no entry for UART1 & UART2.

        And [EMAIL PROTECTED]:~# echo hello > /dev/tts/1 took about 30 seconds to finish!

[EMAIL PROTECTED]:~# cat /proc/tty/driver/serial
serinfo:1.0 driver revision:
0: uart:16550A mmio:0x01C20000 irq:40 tx:4949 rx:191 RTS|CTS|DTR|DSR
1: uart:16550A mmio:0x01C20400 irq:41 tx:0 rx:0 CTS|DSR
2: uart:16550A mmio:0x01E06000 irq:14 tx:0 rx:0 CTS|DSR
3: uart:unknown port:00000000 irq:0
so,  the number of tx of UART1 was still 0 after echo hello > /dev/tts/1.
    I found and tried everything relate to this problem in this list without any luck. Has anyone used UART1 on DM355 already? Or do you know how to enable and use it? Please give me an advice.
Thank you very much,
Viet Hoang.

Send instant messages to your online friends http://uk.messenger.yahoo.com
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to