[U-Boot] [PATCH 2/4] nand: lpc32xx: add SLC NAND controller support

Albert ARIBAUD albert.u.boot at aribaud.net
Thu Jul 16 14:53:58 CEST 2015


Hello Vladimir,

On Thu, 16 Jul 2015 02:33:46 +0300, Vladimir Zapolskiy <vz at mleia.com>
wrote:

> diff --git a/drivers/mtd/nand/lpc32xx_nand_slc.c b/drivers/mtd/nand/lpc32xx_nand_slc.c
> new file mode 100644

> +int board_nand_init(struct nand_chip *lpc32xx_chip)
> +{
> +	lpc32xx_chip->IO_ADDR_R	= &lpc32xx_nand_slc_registers->data;
> +	lpc32xx_chip->IO_ADDR_W	= &lpc32xx_nand_slc_registers->data;

Consistent with my comment re nand_simpl.c, I think that the two
assignments above are incorrect since the data register may not provide
general access to the NAND's I/O lines, and is not 8-bit accessible
even though the NAND is 8-bit wide.

If Scott give his go, though, disregard my comment.
 
Amicalement,
-- 
Albert.


More information about the U-Boot mailing list