From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Fri, 28 Oct 2011 15:46:51 -0500 Subject: [U-Boot] [PATCH 2/3] nand: Add common functions to linux/mtd/nand.h In-Reply-To: <1318762212-6763-3-git-send-email-simonschwarzcor@gmail.com> References: <1317282243-14848-1-git-send-email-simonschwarzcor@gmail.com> <1318762212-6763-1-git-send-email-simonschwarzcor@gmail.com> <1318762212-6763-3-git-send-email-simonschwarzcor@gmail.com> Message-ID: <4EAB14BB.7050403@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 10/16/2011 05:50 AM, Simon Schwarz wrote: > Functions often used in SPL are now part of linux/mtd/nand.h. > > Signed-off-by: Simon Schwarz > Cc: scottwood at freescale.com > Cc: s-paulraj at ti.com > Cc: albert.u.boot at aribaud.net > --- > Changes V2: > CHG moved function definiton from nand.h to linux/mtd/nand.h because of: > http://article.gmane.org/gmane.comp.boot-loaders.u-boot/110219 > --- > include/linux/mtd/nand.h | 7 +++++++ > include/nand.h | 3 --- > 2 files changed, 7 insertions(+), 3 deletions(-) > > diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h > index 987a2ec..2419c6c 100644 > --- a/include/linux/mtd/nand.h > +++ b/include/linux/mtd/nand.h > @@ -624,3 +624,10 @@ struct platform_nand_chip *get_platform_nandchip(struct mtd_info *mtd) > } > > #endif /* __LINUX_MTD_NAND_H */ > + > +/* Standard NAND functions from nand_base.c */ > +void nand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len); > +void nand_write_buf16(struct mtd_info *mtd, const uint8_t *buf, int len); > +void nand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len); > +void nand_read_buf16(struct mtd_info *mtd, uint8_t *buf, int len); > +uint8_t nand_read_byte(struct mtd_info *mtd); These need to go before the #endif. -Scott