Hi Pragnesh,
    Below is my reply to Kumar Bala about this problem. Please read and let me 
know if this  can help or not.
Regards,
Viet Hoang.

--- On Wed, 30/7/08, Pragnesh Bhanushali <[EMAIL PROTECTED]> wrote:
From: Pragnesh Bhanushali <[EMAIL PROTECTED]>
Subject: uart1 on dm355 evm
To: [EMAIL PROTECTED]
Date: Wednesday, 30 July, 2008, 10:00 PM

Hello Hoang,

I came across your post on davinci mailing list for issues with uart1 on dm355
evm. i want to use a rs232 device with the uart1, but when i open minicom it
fails to open /dev/ttyS1 saying no such file or device exists.

dmesg snip:
----------
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
----------

Did you ever manage to resolve this issue? It would be very helpful if you can
share your thoughts on that.

Thanks,
Pragnesh
######################################################
Hi Kumar Bala,
   You can use /dev/tts/0 or /dev/tts/1 for UART0 / UART1; Or you can use mknod 
to create /dev/ttyS1 for your UART1.
Regards,
Viet Hoang.

--- On Tue, 8/7/08, Kumar Bala (DSP-Weuffen GmbH) <[EMAIL PROTECTED]> wrote:
From: Kumar Bala (DSP-Weuffen GmbH) <[EMAIL PROTECTED]>
Subject: Re: UART1 on DM355
To: [EMAIL PROTECTED]
Date: Tuesday, 8 July, 2008, 6:24 PM

Thank again.
I tired adding the patch you sent. it compiles fine. But when i try to
open a serial port such ttyS0 or ttyS1 it says No Such file or
directory. What are the serial port device entires ? Arenet they ttyS0
and ttyS1 or should I create a device link somewhere ?
 Mit
 freundlichen Grüßen / Best regards


Kumar Bala
(Software Developer and System Designer)


DSP-Weuffen
Software/Hardware für DSP- und MCP-Konzeption und Optimierung ihres Systems

DSP-Weuffen GmbH
Schomburger Strasse 11
88279 Amtzell

Tel:    +49 7520 / 96673 - 146
Fax:   +49 7520 / 96673 - 124
Mail:  [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Web: http://www.dsp-weuffen.de <http://www.dsp-weuffen.de/>

Geschäftsführer: Dieter Weuffen  | Amtsgericht 89014 ULM   |  HR-NR:
HRB621135

Bitte beachten Sie, dass diese E-Mail einschließlich aller eventuell
angehängten Dokumente vertrauliche und/oder rechtlich geschützte
Informationen enthalten kann. Der Inhalt ist ausschließlich für den
bezeichneten Adressaten bestimmt. Wenn Sie nicht der richtige Adressat
oder dessen Vertreter sind, setzen Sie sich bitte mit dem Absender der
E-Mail in
 Verbindung und löschen Sie die E-Mail sofort. Jede Form der
Verwendung, Veröffentlichung, Vervielfältigung oder Weitergabe des
Inhalts fehlgeleiteter E-Mails ist unzulässig.




Viet Hoang wrote:
> Hi Kumar Bala,
>    Yes, we are using DM355's UART1. We added some code in function
> board_init() ( arch/arm/mach-davinci/board-dm355-evm.c). Let me know
> if I miss anything.
>
> static void board_init(void)
> {
>     volatile int *ptr_pgmgt,*ptr_ier;  //Added for enabling UART1
>    
>     board_setup_psc(DAVINCI_GPSC_ARMDOMAIN, DAVINCI_LPSC_VPSSMSTR, 1);
>     board_setup_psc(DAVINCI_GPSC_ARMDOMAIN, DAVINCI_LPSC_VPSSSLV, 1);
>     board_setup_psc(DAVINCI_GPSC_ARMDOMAIN, DAVINCI_LPSC_TPCC, 1);
>     board_setup_psc(DAVINCI_GPSC_ARMDOMAIN, DAVINCI_LPSC_TPTC0, 1);
>     board_setup_psc(DAVINCI_GPSC_ARMDOMAIN, DAVINCI_LPSC_TPTC1, 1);
>     board_setup_psc(DAVINCI_GPSC_ARMDOMAIN, DAVINCI_LPSC_GPIO, 1);
>     board_setup_psc(DAVINCI_GPSC_ARMDOMAIN, DAVINCI_LPSC_McBSP1, 1);
>     board_setup_psc(DAVINCI_GPSC_ARMDOMAIN, DAVINCI_LPSC_SPI, 1);
>
>     // Turn on WatchDog timer LPSC.  Needed for RESET to work
>     board_setup_psc(DAVINCI_GPSC_ARMDOMAIN, DAVINCI_LPSC_TIMER2, 1);
>     // Added for enabling UART1
>     board_setup_psc(DAVINCI_GPSC_ARMDOMAIN, DAVINCI_LPSC_UART1, 1);
>     davinci_serial_init(&serial_device);
>     davinci_writel(0x56837210, DAVINCI_VPSS_REGS_BASE + 0x810);
>     davinci_writel(0x7b3c0004, DAVINCI_VPSS_REGS_BASE + 0x814);
>    
>     //Enable UART1
>     ptr_pgmgt        = (volatile int
> *)IO_ADDRESS(DAVINCI_UART1_BASE+0x30) ;
>     ptr_ier            = (volatile int
> *)IO_ADDRESS(DAVINCI_UART1_BASE+0x4);
>     *ptr_pgmgt        = 0x0; //reset tx and rx
>     *ptr_ier        = 0x0; //disable int
>     int del            = 0;
>
>     for(del = 0; del < 100000 ; del++)    // For delay
>         *ptr_pgmgt =0x6001;
>    
>     // Initialize the clock configurations
>     davinci_clk_init();
>     //End of Enabling UART1
> }
>
> Regards,
> Viet Hoang.
>
> --- On *Tue, 8/7/08, Kumar Bala (DSP-Weuffen GmbH)
> /<[EMAIL PROTECTED]>/* wrote:
>
>     From: Kumar Bala (DSP-Weuffen GmbH) <[EMAIL PROTECTED]>
>     Subject: UART1 on DM355
>     To: [EMAIL PROTECTED]
>     Date: Tuesday, 8 July, 2008, 2:54 PM
>
>     Hello Viet,
>     Did you have any luck in using UART1 ?
>
>     Cheers
>
>     -- 
>
>     Mit freundlichen Grüßen / Best regards
>
>     Kumar Bala
>    
 (Software Developer and System Designer)
>
>
>     DSP-Weuffen
>     Software/Hardware für DSP- und MCP-Konzeption und Optimierung ihres
Systems
>
>     DSP-Weuffen GmbH
>     Schomburger Strasse 11
>     88279 Amtzell
>
>     Tel:    +49 7520 / 96673 - 146
>     Fax:   +49 7520 / 96673 - 124
>     Mail:  [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
>     Web: http://www.dsp-weuffen.de <http://www.dsp-weuffen.de/>
>
>     Geschäftsführer: Dieter Weuffen  | Amtsgericht 89014 ULM   |  HR-NR:
>     HRB621135
>
>     Bitte beachten Sie, dass diese E-Mail einschließlich aller eventuell
>     angehängten Dokumente vertrauliche und/oder rechtlich
>      geschützte
>     Informationen enthalten kann. Der Inhalt ist ausschließlich für den
>     bezeichneten Adressaten bestimmt. Wenn Sie
 nicht der richtige Adressat
>     oder dessen Vertreter sind, setzen Sie sich bitte mit dem Absender der
>     E-Mail in Verbindung und löschen Sie die E-Mail sofort. Jede Form der
>     Verwendung, Veröffentlichung, Vervielfältigung oder Weitergabe des
>     Inhalts fehlgeleiteter E-Mails ist unzulässig.
>
>
> Send instant messages to your online friends
> http://uk.messenger.yahoo.com



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