From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] NAND on Davinci boards
Date: Wed, 16 Mar 2011 18:24:23 +0100 [thread overview]
Message-ID: <4D80F247.8040202@denx.de> (raw)
In-Reply-To: <4D80CCCE.8080404@denx.de>
On 03/16/2011 03:44 PM, Stefano Babic wrote:
> Sure. I will inform you about my progresses (if any...).
Solved. It was a misunderstanding about how to set up the NAND driver in
linux. I think the usage of the "id" field in the platform device can
confuse, as it did for me. I thought the id was used only as index for
multiple devices, but the driver takes it as chipselect, even if the
value of the chip select itself could be derived from the resource
structure.
And then, the value of the chip select is used by the driver to enable
the ECC, and as I passed the wrong chip select, the hw ecc was disabled.
Even if I could correctly write/read the NAND under Linux.
I have checked the two drivers and I went to the conclusion that they
are fully compatible. They do exactly the same things and in the same
sequence, no problem at all.
My problem was caused by the fact I have set up the device platform with
"id = 1", and this is translate by the driver as chip select = 3.
However, on my board chip select 2 is used ;-(
Ben, I have already tested writing from linux, and u-boot can now read
the partition correctly. I think there is no incompatibility problem
with the mainline kernel.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
next prev parent reply other threads:[~2011-03-16 17:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-16 8:22 [U-Boot] NAND on Davinci boards Stefano Babic
2011-03-16 10:01 ` Nick Thompson
2011-03-16 12:01 ` Stefano Babic
2011-03-16 12:12 ` Nick Thompson
2011-03-16 12:36 ` Stefano Babic
2011-03-16 12:58 ` Nick Thompson
2011-03-16 13:05 ` Ben Gardiner
2011-03-16 14:44 ` Stefano Babic
2011-03-16 17:24 ` Stefano Babic [this message]
2011-03-16 17:46 ` Ben Gardiner
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=4D80F247.8040202@denx.de \
--to=sbabic@denx.de \
--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