[U-Boot] [PATCH v2] NAND: Add 16bit NAND support for the NDFC

Scott Wood scottwood at freescale.com
Mon Jun 6 22:38:10 CEST 2011


On Fri, May 27, 2011 at 10:00:07AM -0400, Alex Waterman wrote:
> diff --git a/nand_spl/nand_boot.c b/nand_spl/nand_boot.c
> index 9545a9a..725356f 100644
> --- a/nand_spl/nand_boot.c
> +++ b/nand_spl/nand_boot.c
> @@ -80,9 +80,10 @@ static int nand_command(struct mtd_info *mtd, int block, int page, int offs, u8
>  		cmd = NAND_CMD_READ0;
>  	}
>  
> +#ifdef CONFIG_SYS_NDFC_16BIT
>  	/* Shift the offset from byte addressing to word addressing. */
> -	if (this->options & NAND_BUSWIDTH_16)
> -		offs >>= 1;
> +	offs >>= 1;
> +#endif

This is not an NDFC-specific file.

-Scott



More information about the U-Boot mailing list