From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-BOOT] nand merge problem
Date: Wed, 27 May 2009 09:34:26 -0500 [thread overview]
Message-ID: <4A1D4F72.3010304@freescale.com> (raw)
In-Reply-To: <4A1C8C3D.6000108@gmail.com>
xiangfu_gmail wrote:
> static void jz_hwcontrol(struct mtd_info *mtd, int cmd, unsigned int ctrl)
> {
> struct nand_chip *this = (struct nand_chip *)(mtd->priv);
>
> if (ctrl & NAND_CTRL_CHANGE) {
> if (ctrl & NAND_NCE)
> REG_EMC_NFCSR |= EMC_NFCSR_NFCE1;
> else
> REG_EMC_NFCSR &= ~EMC_NFCSR_NFCE1;
>
> if (ctrl & NAND_CLE)
> this->IO_ADDR_W = (void __iomem *)
> ((unsigned long)(this->IO_ADDR_W) | 0x00008000);
> else
> this->IO_ADDR_W = (void __iomem *)
> ((unsigned long)(this->IO_ADDR_W) & ~0x00008000);
>
> if (ctrl & NAND_ALE)
> this->IO_ADDR_W = (void __iomem *)
> ((unsigned long)(this->IO_ADDR_W) | 0x00010000);
> else
> this->IO_ADDR_W = (void __iomem *)
> ((unsigned long)(this->IO_ADDR_W) & ~0x00010000);
>
> }
> }
Nowhere in this function do you issue the command... See
cpu/ppc4xx/ndfc.c for a simple hwcontrol function.
-Scott
next prev parent reply other threads:[~2009-05-27 14:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-26 7:46 [U-Boot] [U-BOOT] nand merge problem xiangfu_gmail
2009-05-26 9:12 ` xiangfu_gmail
2009-05-26 21:17 ` Scott Wood
2009-05-27 0:41 ` xiangfu_gmail
2009-05-27 14:34 ` Scott Wood [this message]
[not found] ` <00ab01c9e19b$b2488f50$3e03a8c0@st.jz.com>
2009-05-31 8:09 ` xiangfu
2009-06-01 16:54 ` Scott Wood
2009-06-02 2:42 ` xiangfu
2009-06-06 14:46 ` [U-Boot] console_init_r problem with ingenic jz4740 cpu xiangfu
2009-06-10 9:14 ` [U-Boot] lcd logo color not correct xiangfu
2009-06-10 14:26 ` xiangfu
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=4A1D4F72.3010304@freescale.com \
--to=scottwood@freescale.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.