public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] NAND: mxc_nand reads/writes only first 512 bytes of each page
Date: Mon, 10 Jan 2011 11:07:34 +0100	[thread overview]
Message-ID: <4D2ADA66.7030809@denx.de> (raw)
In-Reply-To: <AANLkTi=A5zj7rdBQ45ADnKPitO+XLqhHbMYqj5BokqDK@mail.gmail.com>

On 01/09/2011 03:40 PM, Jason Liu wrote:
> Hi, Stefano,
> 

Hi Jason,

> Have you set the page_size correctly with the following register?

Let's see...

> 
> 49.4.3.7 Reset Control and Sourse Register - RCSR:
> 
> NFC_4K
> This bit is used to config the NandFlash page size. It is defined by
> PAGE_SIZE while boot up, and it can be
> configured by software after boot up.
> 0 not 4k page
> 1 4k page
> 8

This seems ok.

> NFC_FMS
> This bit is used to config the NandFlash page size.It is defined by
> PAGE_SIZE while boot up,and it can be
> configured by software after boot up.
> 0 not 2k page
> 1 2k page

That's it ! This was wrong on my board. I set the NFC_FMS bit and the
whole page is now read correctly.

Many thanks,

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
=====================================================================

      reply	other threads:[~2011-01-10 10:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-09 14:30 [U-Boot] NAND: mxc_nand reads/writes only first 512 bytes of each page Stefano Babic
2011-01-09 14:40 ` Jason Liu
2011-01-10 10:07   ` Stefano Babic [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=4D2ADA66.7030809@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