nand_write_page — [REPLACEABLE] write one page
int nand_write_page
(struct mtd_info * mtd, struct nand_chip * chip, const uint8_t * buf, int page, int cached, int raw);
MTD device structure
NAND chip descriptor
the data to write
page number to write
cached programming
use _raw version of write_page