public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 1/7] 83xx: nand support for MPC837XRDB boards
Date: Tue, 18 Mar 2008 17:10:55 +0300	[thread overview]
Message-ID: <20080318141055.GA28688@localhost.localdomain> (raw)
In-Reply-To: <20080317230229.GA3717@loki.buserror.net>

On Mon, Mar 17, 2008 at 06:02:29PM -0500, Scott Wood wrote:
> On Fri, Mar 14, 2008 at 11:19:42PM +0300, Anton Vorontsov wrote:
> > -#define CFG_VSC7385_BASE	0xF0000000
> > +/*
> > + * NAND Flash on the Local Bus
> > + */
> > +#define CFG_NAND_BASE		0xE0600000	/* 0xE0600000 */
> > +#define CFG_BR1_PRELIM		(CFG_NAND_BASE | \
> > +				 (2 << BR_DECC_SHIFT) |	/* Use HW ECC */ \
> > +				 BR_PS_8 |		/* Port Size = 8 bit */ \
> > +				 BR_MS_FCM |		/* MSEL = FCM */ \
> > +				 BR_V)			/* valid */
> > +#define CFG_OR1_PRELIM		(0xFFFF8000 |		/* length 32K */ \
> > +				 OR_FCM_CSCT | \
> > +				 OR_FCM_CST | \
> > +				 OR_FCM_CHT | \
> > +				 OR_FCM_SCY_1 | \
> > +				 OR_FCM_TRLX | \
> > +				 OR_FCM_EHTR)
> 
> Again, are you sure about this SCY value?

Yes. The same value is used by the MDS boards, with the same nand
chip, I guess.

> Note that the Linux driver resets
> it due to existing 8313 u-boots out there that have the wrong value (I'd
> send a patch to fix it if I know the correct value),

Thanks for the info.

> so remove that to see
> what actually happens with SCY_1.

It works. With ndelay writing works too. So far I didn't have
time to debug further, sorry.

> > -/* VSC7385 Gigabit Switch support */
> > +/*
> > + * VSC7385 Gigabit Switch support
> > + */
> > +#define CFG_VSC7385_BASE	0xF0000000
> 
> What does this have to do with NAND?

Nothing. I'm expanding VSC7385 comment to better separate it from
the NAND code. Most lengthy parts of the RDB config are using

/*
 *
 */

as a logical separator. So did I.

-- 
Anton Vorontsov
email: cboumailru at gmail.com
irc://irc.freenode.net/bd2

  reply	other threads:[~2008-03-18 14:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-14 20:19 [U-Boot-Users] [PATCH 1/7] 83xx: nand support for MPC837XRDB boards Anton Vorontsov
2008-03-17 23:02 ` Scott Wood
2008-03-18 14:10   ` Anton Vorontsov [this message]
2008-03-20  1:16     ` Kim Phillips
2008-03-20 16:26       ` Scott Wood
2008-03-20 16:31         ` Anton Vorontsov
2008-03-21 15:30           ` Jerry Van Baren

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=20080318141055.GA28688@localhost.localdomain \
    --to=avorontsov@ru.mvista.com \
    --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