From: xiangfu_gmail <xiangfu.z@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-BOOT] nand merge problem
Date: Wed, 27 May 2009 08:41:33 +0800 [thread overview]
Message-ID: <4A1C8C3D.6000108@gmail.com> (raw)
In-Reply-To: <20090526211706.GB4669@b07421-ec1.am.freescale.net>
Hi Scott
thanks for the reply
Scott Wood wrote:
> On Tue, May 26, 2009 at 05:12:01PM +0800, xiangfu_gmail wrote:
>> xiangfu_gmail wrote:
>>> Hi
>>> I have try to merge Ingenic U-boot (1.1.6) with upstream.
>>> but I have some problem
>> Hi I rewrite the jz_hwcontrol to :
>> --
>> static void jz_hwcontrol(......)
>> { ......
>> }
>> and
>> " nand->cmd_ctrl = jz_hwcontrol; " in board_nand_init
>>
>> but it's still not work:
>> the error message:
>> --
>> NAND: nand_get_flash_type: second ID read did not match ff,ff against
>> 00,00
>> No NAND device found!!!
>>
>> 0 MiB
>> --
>>
>> what can cause this problem?
>
> It would be helpful if you were to post the entire hwcontrol, so we can
> see what's hiding behind those "......"s.
here is the entire hwontrol
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);
}
}
>
> Posting the original legacy NAND defines for this board would be helpful
> as well.
I don't know which code should I post. so I post the git URL:
http://github.com/xiangfu/pi-u-boot/tree/xiangfu
>
> -Scott
thanks
--
Best Regards
Xiangfu Liu
jabber : xiangfu.z at gmail.com
skype : xiangfu.z
next prev parent reply other threads:[~2009-05-27 0:41 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 [this message]
2009-05-27 14:34 ` Scott Wood
[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=4A1C8C3D.6000108@gmail.com \
--to=xiangfu.z@gmail.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