diff options
Diffstat (limited to 'src/flash/arm_nandio.h')
-rw-r--r-- | src/flash/arm_nandio.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/flash/arm_nandio.h b/src/flash/arm_nandio.h new file mode 100644 index 0000000..eedf5dc --- /dev/null +++ b/src/flash/arm_nandio.h @@ -0,0 +1,25 @@ +#ifndef __ARM_NANDIO_H +#define __ARM_NANDIO_H + +#include "nand.h" +#include "binarybuffer.h" + +struct arm_nand_data { + /* target is proxy for some ARM core */ + struct target_s *target; + + /* copy_area holds write-to-NAND loop and data to write */ + struct working_area_s *copy_area; + + /* chunk_size == page or ECC unit */ + unsigned chunk_size; + + /* data == where to write the data */ + uint32_t data; + + /* currently implicit: data width == 8 bits (not 16) */ +}; + +int arm_nandwrite(struct arm_nand_data *nand, uint8_t *data, int size); + +#endif /* __ARM_NANDIO_H */ |