From 9a51b8b0e3d0b629915a8248e2c112a01ffc93dc Mon Sep 17 00:00:00 2001 From: Dean Glazeski Date: Fri, 20 Nov 2009 00:19:39 -0600 Subject: NAND page command refactoring. Created a new function that handles sending a command and the address information for pages to a NAND device. [dbrownell@users.sourceforge.net: tweaked line lengths, name 'oob_only'] Signed-off-by: David Brownell --- src/flash/nand.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/flash/nand.h') diff --git a/src/flash/nand.h b/src/flash/nand.h index d73aee14..230cf508 100644 --- a/src/flash/nand.h +++ b/src/flash/nand.h @@ -270,6 +270,9 @@ struct nand_device *get_nand_device_by_name(const char *name); struct nand_device *get_nand_device_by_num(int num); +int nand_page_command(struct nand_device *nand, uint32_t page, + uint8_t cmd, bool oob_only); + int nand_read_page_raw(struct nand_device *nand, uint32_t page, uint8_t *data, uint32_t data_size, uint8_t *oob, uint32_t oob_size); int nand_write_page_raw(struct nand_device *nand, uint32_t page, -- cgit v1.2.3