[U-Boot] [PATCH v2] mtd: nand: new base driver for memory mapped nand devices

Scott Wood scottwood at freescale.com
Wed May 6 19:35:29 CEST 2009


On Wed, May 06, 2009 at 09:05:21AM -0400, Mike Frysinger wrote:
> + *  NAND_PLAT_WRITE_CMD(cmd, chip)
> + *  NAND_PLAT_WRITE_ADR(cmd, chip)

It seems counterintuitive to have "cmd" before "this" -- it's backwards
from both cmd_ctrl and the blackfin command that you turn it into (yes,
it's like writeb() -- but I always found that to be weird too).

> +/* #define CONFIG_NAND_PLAT */

Why is this commented out?

> +#define NAND_PLAT_DEV_READY(chip)      ((*pPORTFIO & BFIN_NAND_READY) ? 1 : 0)

Why not just (*pPORTFIO & BFIN_NAND_READY)?

-Scott


More information about the U-Boot mailing list