diff --git a/components/drivers/include/drivers/mtd_nand.h b/components/drivers/include/drivers/mtd_nand.h index d9d17194e4cc3e8bc0d5c55ed7fd4783b025b83e..4ea2a92d40c9ed899d70ed371e0da762f2533708 100644 --- a/components/drivers/include/drivers/mtd_nand.h +++ b/components/drivers/include/drivers/mtd_nand.h @@ -35,10 +35,11 @@ struct rt_mtd_nand_device { struct rt_device parent; - rt_uint32_t page_size; /* The Page size in the flash */ + rt_uint16_t page_size; /* The Page size in the flash */ rt_uint16_t oob_size; /* Out of bank size */ rt_uint16_t oob_free; /* the free area in oob that flash driver not use */ - + rt_uint16_t plane_num; /* the number of plane in the NAND Flash */ + rt_uint32_t pages_per_block; /* The number of page a block */ rt_uint16_t block_total;