From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Thu, 28 Jun 2012 17:18:31 -0500 Subject: [U-Boot] [PATCH 3/5] [PATCH 3/5] Add nand_spl support for the apf27 In-Reply-To: <1340915772-30493-3-git-send-email-tremyfr@yahoo.fr> References: <1340915772-30493-1-git-send-email-tremyfr@yahoo.fr> <1340915772-30493-3-git-send-email-tremyfr@yahoo.fr> Message-ID: <4FECD837.1060000@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 06/28/2012 03:36 PM, Philippe Reynes wrote: > Signed-off-by: Philippe Reynes > Signed-off-by: Eric Jarrige > --- > nand_spl/board/armadeus/apf27/Makefile | 79 +++++ > nand_spl/board/armadeus/apf27/config.mk | 45 +++ > nand_spl/board/armadeus/apf27/start.S | 548 ++++++++++++++++++++++++++++++ > nand_spl/board/armadeus/apf27/u-boot.lds | 39 +++ > 4 files changed, 711 insertions(+), 0 deletions(-) > create mode 100644 nand_spl/board/armadeus/apf27/Makefile > create mode 100644 nand_spl/board/armadeus/apf27/config.mk > create mode 100644 nand_spl/board/armadeus/apf27/start.S > create mode 100644 nand_spl/board/armadeus/apf27/u-boot.lds nand_spl is deprecated -- please use the new spl/ infrastructure. -Scott > +/* > + * Standard NAND flash commands > + */ > +#define NAND_CMD_READ0 0 > +#define NAND_CMD_READ1 1 > +#define NAND_CMD_PAGEPROG 0x10 > +#define NAND_CMD_READOOB 0x50 > +#define NAND_CMD_ERASE1 0x60 > +#define NAND_CMD_STATUS 0x70 > +#define NAND_CMD_STATUS_MULTI 0x71 > +#define NAND_CMD_SEQIN 0x80 > +#define NAND_CMD_READID 0x90 > +#define NAND_CMD_ERASE2 0xd0 > +#define NAND_CMD_RESET 0xff > + > +/* Extended commands for large page devices */ > +#define NAND_CMD_READSTART 0x30 > +#define NAND_CMD_CACHEDPROG 0x15 > + > +/* Status bits */ > +#define NAND_STATUS_FAIL 0x01 > +#define NAND_STATUS_FAIL_N1 0x02 > +#define NAND_STATUS_TRUE_READY 0x20 > +#define NAND_STATUS_READY 0x40 > +#define NAND_STATUS_WP 0x80 Why do you need to redefine this stuff? -Scott