From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 1/3] 83xx: nand support for MPC837XRDB boards
Date: Fri, 7 Mar 2008 19:42:00 +0300 [thread overview]
Message-ID: <20080307164200.GA12775@localhost.localdomain> (raw)
In-Reply-To: <20080307162609.GD10545@ld0162-tx32.am.freescale.net>
On Fri, Mar 07, 2008 at 10:26:09AM -0600, Scott Wood wrote:
> On Fri, Mar 07, 2008 at 06:04:54PM +0300, Anton Vorontsov wrote:
> > +#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)
>
> Are you sure that SCY_1 is correct? The 8313erdb config sets it, and
> it's too low -- I get errors if I don't increase it. I don't know what
> the minimal correct value should be, though.
I'm getting errors even with SCY_7. ;-) More specifically, I'm getting
errors when writing to nand (nandwrite), reading and erasing works ok.
Writing somehow confuses elbc, and it stops sending irqs. I've tried to
increase timings, but there is no effect of doing this.
The patch below helps though, and nandwrite works ok with it, so
I strongly believe this is software issue. Ideas?
diff --git a/drivers/mtd/nand/fsl_elbc_nand.c b/drivers/mtd/nand/fsl_elbc_nand.c
index b025dfe..f1e97fb 100644
--- a/drivers/mtd/nand/fsl_elbc_nand.c
+++ b/drivers/mtd/nand/fsl_elbc_nand.c
@@ -691,6 +691,8 @@ static void fsl_elbc_write_buf(struct mtd_info *mtd, const u8 *buf, int len)
memcpy_toio(&ctrl->addr[ctrl->index], buf, len);
ctrl->index += len;
+
+ ndelay(100);
}
/*
prev parent reply other threads:[~2008-03-07 16:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-07 15:04 [U-Boot-Users] [PATCH 1/3] 83xx: nand support for MPC837XRDB boards Anton Vorontsov
2008-03-07 16:26 ` Scott Wood
2008-03-07 16:42 ` Anton Vorontsov [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=20080307164200.GA12775@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