[U-Boot] [PATCH v7 02/19] nand: mxc: Add support for i.MX5

Fabio Estevam festevam at gmail.com
Tue Feb 26 16:33:20 CET 2013


Benoit,

On Fri, Feb 15, 2013 at 6:54 PM, Benoît Thébaudeau
<benoit.thebaudeau at advansee.com> wrote:

> +#elif defined(CONFIG_MX51) || defined(CONFIG_MX53)
> +static int is_16bit_nand(void)
> +{
> +       struct src *src = (struct src *)SRC_BASE_ADDR;
> +
> +       if (readl(&src->sbmr) & SRC_SBMR_NF16B)
> +               return 1;
> +       else
> +               return 0;

This logic is not working on my tests with mx53ard and it results in:

NAND:  NAND device: Manufacturer ID: 0xec, Chip ID: 0xd5 (Samsung NAND 2GiB 3,3)
NAND bus width 16 instead 8 bit
No NAND device found!!!
0 MiB

I am using NAND, but not booting from it, so I don't think we should
use SBMR register to decide the NAND bus width.

If we are not booting from NAND, shouldn't we use a CONFIG_ option in
mx53ard.h to tell the NAND bus width?

Regards,

Fabio Estevam


More information about the U-Boot mailing list