LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Caruso, Nick" <ncaruso@irobot.com>
To: <linuxppc-embedded@ozlabs.org>
Subject: How to set a custom baud rate using 2.6 linux distro on MPC5200 based board?
Date: Tue, 15 Feb 2005 16:33:22 -0500	[thread overview]
Message-ID: <712A2DEC228C7448978CBD7A7AD5B090592CE2@fever.wardrobe.irobot.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 897 bytes --]


I'm trying to set a custom baud rate (500KBaud, in case anyone cares) on one of the PSCs on a MPC5200 board.
The PSC is configured as a serial port and is visible and usable under the 2.6 kernel we're using.

I used to use the following code under 2.4 on an x86 board:

   serial_info.flags = ASYNC_SPD_CUST | ASYNC_LOW_LATENCY;
   serial_info.custom_divisor = 48;  // clock on FTDI chip / 48 == 500KB

   if ( ioctl(tty_fd, TIOCSSERIAL, &serial_info ) < 0) {
     perror("config_serial_port: ioctl TIOCSSERIAL");
     return(-1);
   }

This compiled fine under the ppc cross-dev tools we have but it fails with an "invalid argument" error when run on the ppc board.

I'm busy reading the driver sources but thought someone on the list might be able to help me out.

  thanks!
     --nick caruso
       irobot corporation
       intelligent vehicles
       r-gator project

[-- Attachment #2: Type: text/html, Size: 1628 bytes --]

             reply	other threads:[~2005-02-15 21:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-15 21:33 Caruso, Nick [this message]
     [not found] ` <712A2DEC228C7448978CBD7A7AD5B090592CE2@fever.wardrobe.irob ot.com>
2005-02-15 23:55   ` How to set a custom baud rate using 2.6 linux distro on MPC5200 based board? Eric N. Johnson (ACD)
  -- strict thread matches above, loose matches on Subject: below --
2005-02-16 21:39 Caruso, Nick

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=712A2DEC228C7448978CBD7A7AD5B090592CE2@fever.wardrobe.irobot.com \
    --to=ncaruso@irobot.com \
    --cc=linuxppc-embedded@ozlabs.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