4 #include <flash/nand.h>
5 #include <helper/binarybuffer.h>
8 * The arm_nand_data struct is used for defining NAND I/O operations on an ARM
11 struct arm_nand_data {
12 /** target is proxy for some ARM core */
13 struct target *target;
15 /** copy_area holds write-to-NAND loop and data to write */
16 struct working_area *copy_area;
18 /** chunk_size == page or ECC unit */
21 /** data == where to write the data */
24 /* currently implicit: data width == 8 bits (not 16) */
27 int arm_nandwrite(struct arm_nand_data *nand, uint8_t *data, int size);
28 int arm_nandread(struct arm_nand_data *nand, uint8_t *data, uint32_t size);
30 #endif /* __ARM_NANDIO_H */