public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: stefano babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] change U-boot file stream to COM2
Date: Thu, 30 Aug 2007 19:17:05 +0200	[thread overview]
Message-ID: <46D6FB91.2000305@denx.de> (raw)
In-Reply-To: <m27inddntn.fsf@ohwell.denx.de>

Detlev Zundel wrote:
> Fortunately we are just working on something like this, Stefano (on
> CC), should be able to tell you when this will be finished.

Test is finished. I will send the patch. Multiple serials are supported 
in the same way as they are on the PPC boards.

Javier, at the moment u-boot supports only one serial interface and 
consequently you cannot enable the other ones. You can use any of 
FFUART,BTUART or STUART, but u-boot cannot have more than one serial at 
the same time. The serial driver for PXA27xx does not support it.

After applying the patch I will send, you have to set 
CONFIG_SERIAL_MULTI in your config file and all serials you want to use:

#define CONFIG_SERIAL_MULTI
#define CONFIG_FFUART          1       /* we use FFUART on Conxs */
#define CONFIG_BTUART          1       /* we use BTUART on Conxs */
#define CONFIG_STUART          1       /* we use STUART on Conxs */

You have to provide also a function in your board.c file to return the 
default serial device, such as:

struct serial_device *default_serial_console (void)
{
         return &serial_ffuart_device;
}

or whatever you prefer.

On my target (PXA270) I get:
U-Boot 1.2.0-gc7d2ba2d-dirty (Aug 23 2007 - 15:47:09)

DRAM:  64 MB
Flash: 32 MB
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
$ coninfo
List of available devices:
serial   80000003 SIO stdin stdout stderr
nulldev  80000003 SIO
serial_stuart 00000003 .IO
serial_btuart 00000003 .IO
serial_ffuart 00000003 .IO

Then you will be able to switch among the serials setting the stdout, 
stdin and stderr variables. For example, to switch to the BTUART:

	setenv stdout serial_btuart
	setenv stdin serial_btuart


Regards,
stefano

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

      reply	other threads:[~2007-08-30 17:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-12 15:21 [U-Boot-Users] change U-boot file stream to COM2 Javier Grijalba
2007-08-12 16:17 ` Wolfgang Denk
2007-08-13  7:39   ` Javier Grijalba
2007-08-13  9:42     ` Wolfgang Denk
2007-08-13 10:34       ` Javier Grijalba
2007-08-13 11:15         ` Wolfgang Denk
2007-08-13 13:07       ` Javier Grijalba
2007-08-13 14:40         ` Wolfgang Denk
2007-08-30 15:49         ` Detlev Zundel
2007-08-30 17:17           ` stefano babic [this message]

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=46D6FB91.2000305@denx.de \
    --to=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    /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