Hi,

 

I double checked my usage of tts/x. It turned out that only 0 device is
working. I am sorry for misleading you.

 

Kirill

 

  _____  

From: shreshtha [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 04, 2006 4:57 PM
To: 'Kirill Sukhonosenko'; 'SangJae H.';
[email protected]
Subject: RE: Anybody using UART1, UART2 ?

 

As we found that two are multiplexed 

UADRMTA_CTXKD/ 1 - PIN H3 and UADRMTA_RRQXD/ 1 - PIN G1, refer page 47 of
sprs283.

 

So we changed the Linux code (/arch/arm/mach-davinci/board-evm.c and
clock.c) 

 to enable the power of UART1 and to select UART1 from PINMUX1 (refer PINMUX
register in page72).

 

We are using the MVL401 kernel (which is newer than MVL402 provided earlier)
on DVEVM.

 

Now if I do "cat /dev/ttys/0" and typing any character gets loopbacked

But same is not true with dev/ttys/1.

 

In /dev/ttys/1 it gives following error - 

"cat: /dev/tts/1: Input/output error"

 

While kernel boots up it displays following message with standard kernel

***************

Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled

Registering platform device 'serial8250'. Parent at platform

ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A

***************

 

With our modified kernel it displays following message

**************

Serial: 8250/16550 driver $Revision: 1.90 $ 2 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

*************

 

 

Did you got your UART working without changing any driver?

If so please help, as we were not able to do so even without above mentioned
changed.

 

If you want I can send you the changes done by us in board-evm.c, serial.c
and clock.c

 

 

regards,

Shreshtha Kumar, Inder

  _____  

From: Kirill Sukhonosenko [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 04, 2006 6:50 PM
To: 'shreshtha'; 'SangJae H.';
[email protected]
Subject: RE: Anybody using UART1, UART2 ?

 

Hi,

 

I thought the problem as due invalid device name you were trying to use... 

I am using TI DVEM board and I can easily use both UARTs and ATA with kernel
(and u-boot) supplied by default. 

Have you changed the kernel or u-boot?

 

What software you are referring by "I'm using 1.0.0 version software" ?

 

Kirill

 

  _____  

From: shreshtha [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 04, 2006 2:56 PM
To: 'SangJae H.'; [email protected]
Cc: 'Kirill Sukhonosenko'
Subject: RE: Anybody using UART1, UART2 ?

 

Presently 0 and 1 nodes are being created inside /dev/tts for UART0 and 1
respectively.

But as UART1 and ATA are multiplied and by default ATA is enabled so for
using UART1 we need to first enable at h/w level.

This h/w init can be done in UBOOT or /arch/arm/mach-davinci/board-evm.c.
and in clock.c in same directory.

 

This works to enable the h/w but still we are not able to use UART1 from
/dev/tts/1.

 

We found that all the structure info for UART1 was 0x00 for e.g. UART1 base
etc.

We passed structure for UART1 similar as done for UART0 in serial.c present
in same mach-davinci

 

Now the base addresses etc for UART1 is showing OK during registration of
UART1 in /driver/serial/8250.c 

U can even see this by following command

            cat /dev/tts/1

 

Still we are not able to get interrupt from UART1.

 

Kirill if u see any thing missing/wrong in above procedure please help.

 

 

regards,

Shreshtha Kumar, Inder

  _____  

From: Kirill Sukhonosenko [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 04, 2006 3:26 PM
To: 'SangJae H.'; [email protected]
Subject: RE: Anybody using UART1, UART2 ?

 

Hi,

 

Please try those found in /dev/tts

 

Regards,

Kirill

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
SangJae H.
Sent: Monday, December 04, 2006 8:22 AM
To: [email protected]
Subject: Anybody using UART1, UART2 ?

 

Hi 

 

I'm using 1.0.0 version software 

 

Anybody using UART1 and UART2 ( ex. /dev/ttyS0, /dev/ttyS1, /dev/ttyS2 )

 

I see at /dev/ directory, there is not /dev/ttyS? , only /dev/console 

I see init kernel boot message blow

 

---

ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A

---

 

How can I enable UART1 and UART2 ?

 

Thank you.

 

 

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to