From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] mtd: nand: new base driver for memory mapped nand devices
Date: Wed, 6 May 2009 19:28:07 -0400 [thread overview]
Message-ID: <200905061928.08762.vapier@gentoo.org> (raw)
In-Reply-To: <20090506205118.9E12F83420E8@gemini.denx.de>
On Wednesday 06 May 2009 16:51:18 Wolfgang Denk wrote:
> In Mike Frysinger wrote:
> > --- /dev/null
> > +++ b/drivers/mtd/nand/nand_plat.c
> > @@ -0,0 +1,53 @@
> > +/*
> > + * Genericish driver for memory mapped NAND devices
>
> Genericish ?
i tried to make it generic. i dont know if i accomplished that :).
> > +#define NAND_PLAT_WRITE_CMD(cmd, chip)
> > BFIN_NAND_WRITE(BFIN_NAND_CLE(chip), cmd) +#define
> > NAND_PLAT_WRITE_ADR(cmd, chip) BFIN_NAND_WRITE(BFIN_NAND_ALE(chip), cmd)
> > +#define NAND_PLAT_DEV_READY(chip) ((*pPORTFIO & BFIN_NAND_READY) ?
> > 1 : 0) +#define NAND_PLAT_INIT() \
> > + do { \
> > + *pPORTF_FER &= ~BFIN_NAND_READY; \
> > + *pPORTFIO_DIR &= ~BFIN_NAND_READY; \
> > + *pPORTFIO_INEN |= BFIN_NAND_READY; \
> > + } while (0)
>
> Please use I/O accessors instead of pointers.
OK
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090506/af9bcacd/attachment.pgp
next prev parent reply other threads:[~2009-05-06 23:28 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-12 1:26 [U-Boot] [PATCH] mtd: nand: new base driver for memory mapped nand devices Mike Frysinger
2009-04-13 15:59 ` Scott Wood
2009-04-13 21:18 ` Mike Frysinger
2009-04-13 21:42 ` Scott Wood
2009-04-13 22:09 ` Mike Frysinger
2009-04-13 23:02 ` Scott Wood
2009-04-13 23:47 ` Mike Frysinger
2009-05-06 13:05 ` [U-Boot] [PATCH v2] " Mike Frysinger
2009-05-06 17:35 ` Scott Wood
2009-05-06 18:04 ` Mike Frysinger
2009-05-06 18:19 ` Scott Wood
2009-05-06 19:14 ` Mike Frysinger
2009-05-06 19:38 ` [U-Boot] [PATCH v3] " Mike Frysinger
2009-05-06 19:49 ` Scott Wood
2009-05-06 20:10 ` Mike Frysinger
2009-05-06 20:53 ` Wolfgang Denk
2009-05-06 20:51 ` [U-Boot] [PATCH v2] " Wolfgang Denk
2009-05-06 23:28 ` Mike Frysinger [this message]
2009-05-07 0:28 ` [U-Boot] [PATCH v4] " Mike Frysinger
2009-05-11 19:14 ` Scott Wood
2009-05-13 23:45 ` [U-Boot] [PATCH v5] " Mike Frysinger
2009-05-19 21:55 ` Scott Wood
2009-05-26 2:42 ` [U-Boot] [PATCH v6] " Mike Frysinger
2009-05-29 19:52 ` Scott Wood
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=200905061928.08762.vapier@gentoo.org \
--to=vapier@gentoo.org \
--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