From: Matthias Kaehlcke <matthias@kaehlcke.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] kb9202/at91rm9200: compiler quirk?
Date: Mon, 4 May 2009 23:54:34 +0200 [thread overview]
Message-ID: <20090504215434.GK9523@traven> (raw)
In-Reply-To: <20090504212612.GA13923@game.jcrosoft.org>
hi jean-christophe,
El Mon, May 04, 2009 at 11:26:12PM +0200 Jean-Christophe PLAGNIOL-VILLARD ha dit:
> On 20:13 Mon 04 May , Matthias Kaehlcke wrote:
>
> > i'm trying to do a forward port of the out of tree patches for the
> > kwikbyte kb9202b. my board is booting and detects the nand flash, but
> > only in certain circumstances.
> I've never test the nand on rm9200 as the rm9200ek does not have it
> but I'll try this
> >
> > the hwcontrol function looks like this:
> >
> > #define KB9202_NAND_NCE ((unsigned int)1 << 28) /* EN* on D28 */
> unsigned int is not needed
> >
> > static void kb9202_nand_hwcontrol(struct mtd_info *mtd, int cmd,
> > unsigned int ctrl)
> > {
> > ...
> >
> > if (ctrl & NAND_NCE)
> > AT91C_BASE_PIOB->PIO_CODR = KB9202_NAND_NCE;
> try writel(KB9202_NAND_NCE, AT91C_BASE_PIOB->PIO_CODR);
> > else
> > AT91C_BASE_PIOB->PIO_SODR = KB9202_NAND_NCE;
> and writel(KB9202_NAND_NCE, AT91C_BASE_PIOB->PIO_SODR);
thanks for your response
i just tried it with writel(), but it doesn't work either, not even
without the define :(
any other idea?
--
Matthias Kaehlcke
Embedded Linux Engineer
Barcelona
Yo soy como soy y t? eres como eres, construyamos un mundo donde yo
pueda ser sin dejar de ser yo, donde t? puedas ser sin dejar de ser
t?, y donde ni yo ni t? obliguemos al otro a ser como yo o como t?
.''`.
using free software / Debian GNU/Linux | http://debian.org : :' :
`. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4 `-
prev parent reply other threads:[~2009-05-04 21:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-04 18:13 [U-Boot] kb9202/at91rm9200: compiler quirk? Matthias Kaehlcke
2009-05-04 21:26 ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-04 21:54 ` Matthias Kaehlcke [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=20090504215434.GK9523@traven \
--to=matthias@kaehlcke.net \
--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