From: Hurricane555 <sohnschein@gmx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] IO serial problem
Date: Mon, 20 Mar 2006 04:40:06 -0800 (PST) [thread overview]
Message-ID: <3492558.post@talk.nabble.com> (raw)
In-Reply-To: <20060317210740.82DDF352B33@atlas.denx.de>
I found the mistake! I had to readout the RXFDB!! I configured the
board_serial.c this way:
int serial_tstc( void )
{
unsigned int unRegCache;
if ( cCharsAvailable )
return 1;
unRegCache = *get_ser_reg_addr_channel( NS9750_SER_STAT_A, CONSOLE );
if ( unRegCache & NS9750_SER_STAT_A_RBC ) {
*get_ser_reg_addr_channel( NS9750_SER_STAT_A, CONSOLE ) =
NS9750_SER_STAT_A_RXFDB_FULL;
*get_ser_reg_addr_channel( NS9750_SER_STAT_A, CONSOLE ) =
NS9750_SER_STAT_A_RBC;
unRegCache = *get_ser_reg_addr_channel( NS9750_SER_STAT_A,
CONSOLE );
}
if ( unRegCache & NS9750_SER_STAT_A_RRDY ) {
cCharsAvailable = (unRegCache & NS9750_SER_STAT_A_RXFDB_FULL)>>20;
if ( !cCharsAvailable )
cCharsAvailable = 4;
unCharCache = *get_ser_reg_addr_channel( NS9750_SER_FIFO,
CONSOLE );
return 1;
}
I changed NS9750_SER_STAT_A_RXFDB_MA to NS9750_SER_STAT_A_RXFDB_FULL!!
--
View this message in context: http://www.nabble.com/IO-serial-problem-t1297565.html#a3492558
Sent from the Uboot - Users forum at Nabble.com.
prev parent reply other threads:[~2006-03-20 12:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-17 12:40 [U-Boot-Users] IO serial problem Hurricane555
2006-03-17 21:07 ` Wolfgang Denk
2006-03-20 12:40 ` Hurricane555 [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=3492558.post@talk.nabble.com \
--to=sohnschein@gmx.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