diff options
Diffstat (limited to 'src/flash/nand.h')
-rw-r--r-- | src/flash/nand.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flash/nand.h b/src/flash/nand.h index d0dd7579..5535221a 100644 --- a/src/flash/nand.h +++ b/src/flash/nand.h @@ -197,6 +197,7 @@ extern nand_device_t *get_nand_device_by_num(int num); extern int nand_read_page_raw(struct nand_device_s *device, u32 page, u8 *data, u32 data_size, u8 *oob, u32 oob_size); extern int nand_write_page_raw(struct nand_device_s *device, u32 page, u8 *data, u32 data_size, u8 *oob, u32 oob_size); extern int nand_read_status(struct nand_device_s *device, u8 *status); +extern int nand_calculate_ecc(struct nand_device_s *device, const u8 *dat, u8 *ecc_code); extern int nand_register_commands(struct command_context_s *cmd_ctx); extern int nand_init(struct command_context_s *cmd_ctx); |