mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
nand: Add common functions to linux/mtd/nand.h
Functions often used in SPL are now part of linux/mtd/nand.h. Static modifiers are removed from these functions in drivers/mtd/nand/nand_base.c. Signed-off-by: Simon Schwarz <simonschwarzcor@gmail.com> Cc: scottwood@freescale.com Cc: s-paulraj@ti.com Cc: albert.u.boot@aribaud.net Acked-by: Scott Wood <scottwood@freescale.com>
This commit is contained in:
parent
14c3261497
commit
82645f816f
3 changed files with 10 additions and 6 deletions
|
@ -623,4 +623,11 @@ struct platform_nand_chip *get_platform_nandchip(struct mtd_info *mtd)
|
|||
return chip->priv;
|
||||
}
|
||||
|
||||
/* 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);
|
||||
|
||||
#endif /* __LINUX_MTD_NAND_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue