[U-Boot] [PATCH 00/13] mxc nand: Add support for i.MX5

Benoît Thébaudeau benoit.thebaudeau at advansee.com
Mon Jan 7 17:55:13 CET 2013


Dear Marek Vasut,

On Monday, January 7, 2013 5:42:11 PM, Marek Vasut wrote:
> Dear Benoît Thébaudeau,
> 
> > Dear Marek Vasut,
> > 
> > On Monday, January 7, 2013 4:08:45 PM, Marek Vasut wrote:
> > > Dear Fabio Estevam,
> > > 
> > > > Hi Benoît,
> > > > 
> > > > On Mon, Jan 7, 2013 at 11:37 AM, Benoît Thébaudeau
> > > > 
> > > > <benoit.thebaudeau at advansee.com> wrote:
> > > > > Fabio, can you give me the reference of the NAND Flash that
> > > > > you
> > > > > will use
> > > > > for testing on i.MX53? That will allow me to adjust the NFC
> > > > > clock
> > > > > and to
> > > > > know if I also have to add support for 4-kiB pages or
> > > > > multi-CS.
> > > > 
> > > > The NAND I have is a K9LAG08U0M.
> > > 
> > > Do you guys happen to have include/config/<config>.h section for
> > > the
> > > MX5 NFC ?
> > > esp. this CONFIG_MXC_NAND_IP_REGS_BASE is what I don't quite get
> > > how
> > > it fits in.
> > 
> > Here is this section for my custom i.MX51 board:
> > 
> > #define CONFIG_SYS_MAX_NAND_DEVICE	1
> > #define CONFIG_SYS_NAND_BASE		NFC_BASE_ADDR_AXI
> > #define CONFIG_NAND_MXC
> > #define CONFIG_MXC_NAND_REGS_BASE	NFC_BASE_ADDR_AXI
> > #define CONFIG_MXC_NAND_IP_REGS_BASE	NFC_BASE_ADDR
> > #define CONFIG_SYS_NAND_LARGEPAGE
> > #define CONFIG_MXC_NAND_HWECC
> > #define CONFIG_SYS_NAND_USE_FLASH_BBT
> 
> Benoit, not much luck with this stuff. Am I missing something else? I
> believe I
> configured pinmux, I enabled the NAND clock too. But maybe there's
> something
> else? Can you send me some patch that enables use of this NAND driver
> on your
> MX5 platform?

Did you check that the NFC clock frequency is compatible with your NAND Flash?

Are your running this on i.MX51 or i.MX53?

Are you booting from NAND, or are you just accessing NAND after another source
of boot?

Which NAND Flash reference are you using? As I mentioned, 4-kiB pages and
multi-CS are not yet supported.

Pinmux should be NFC-ready by default (at least for CS0 on i.MX51).

What did you test and what did you get?

I don't think that I have a simple patch for what you ask. Can you instead send
me your patch, and I'll take a look at it?

Best regards,
Benoît


More information about the U-Boot mailing list