Thank you Todd
You got it!
I applied the patch and now it works fine.
Thank you very much
Roberto
--- In "ToddV" <> wrote:
>
>
>
> Hi Roberto -
>
> > For other questions, now I need to upgrade kernel to 2.6 and I got this
> > unaspected problem:
> > - on /dev/ttyAM0 closed RTS and DTR are at logic level 1 (active)
> > - on /dev/ttyAM0 open RTS and DTR are at logic level 0 (not active)
> >
> > It seems works in inverted mode. Calling fopen() they go down and calling
> > fclose() they works!!!
>
>
> Yes, the polarity of the RTS/CTS lines are incorrect as implemented in the
> kernel code for the ep93xx. These are set in the ep93xx_uart_set_mctrl()
> function in arch/arm/mach-ep93xx/core.c
>
> Here is the patch that I apply when building my kernels:
>
> diff --git a/arch/arm/mach-ep93xx/core.c b/arch/arm/mach-ep93xx/core.c
> index ffdf87b..5718cca 100644
> --- a/arch/arm/mach-ep93xx/core.c
> +++ b/arch/arm/mach-ep93xx/core.c
> @@ -251,9 +251,9 @@ static void ep93xx_uart_set_mctrl(struct amba_device *dev,
> unsigned int mcr;
>
> mcr = 0;
> - if (!(mctrl & TIOCM_RTS))
> + if (mctrl & TIOCM_RTS)
> mcr |= 2;
> - if (!(mctrl & TIOCM_DTR))
> + if (mctrl & TIOCM_DTR)
> mcr |= 1;
>
> __raw_writel(mcr, base + EP93XX_UART_MCR_OFFSET);
> --
>
>
> Todd
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|