Linux Serial subsystem development
 help / color / mirror / Atom feed
From: grego rigolo <gregorigolo2002@yahoo.fr>
To: "linux-serial@vger.kernel.org" <linux-serial@vger.kernel.org>
Subject: auto-RTS and TL16C754C
Date: Fri, 11 May 2012 13:18:27 +0100 (BST)	[thread overview]
Message-ID: <1336738707.83536.YahooMailNeo@web28605.mail.ukl.yahoo.com> (raw)

Hi all,
I am using a TL16C754C in my design and i was wondering why the Auto-RTS was not enabled.
Indeed in the 8250.c source code we can read

FIXME:
         * - TI16C752 requires control thresholds to be set.
         * - UART_MCR_RTS is ineffective if auto-RTS mode is enabled

In the serial-omap.c, i saw that auto-rts had been enabled:
/* Hardware Flow Control Configuration */

    if (termios->c_cflag & CRTSCTS)
 {
        efr |= (UART_EFR_CTS | UART_EFR_RTS);
        serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A);

        up->mcr = serial_in(up, UART_MCR);
        serial_out(up, UART_MCR, up->mcr | UART_MCR_TCRTLR);

        serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B);
        up->efr = serial_in(up, UART_EFR);
        serial_out(up, UART_EFR, up->efr | UART_EFR_ECB);

        serial_out(up, UART_TI752_TCR, OMAP_UART_TCR_TRIG);
        serial_out(up, UART_EFR, efr); /* Enable AUTORTS and AUTOCTS */
        serial_out(up, UART_LCR, UART_LCR_CONF_MODE_A);
        serial_out(up,
 UART_MCR, up->mcr | UART_MCR_RTS);
        serial_out(up, UART_LCR, cval);


Thanks in advance for your comments

greg
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

                 reply	other threads:[~2012-05-11 12:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1336738707.83536.YahooMailNeo@web28605.mail.ukl.yahoo.com \
    --to=gregorigolo2002@yahoo.fr \
    --cc=linux-serial@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox