summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
author[email protected] <[email protected]>2012-10-10 04:00:52 +0000
committer[email protected] <[email protected]>2012-10-10 04:00:52 +0000
commitc453dcd547d14610f02f99cd1cbd4cf8cc4114e2 (patch)
treed6fd644ed622ed68299c44e9fbac589ba84cf9f7 /components/drivers/include
parent14e5b39b4c472afa311d2c460fcda0a1aa4afd8b (diff)
Add plane_num field in MTD_Nand structure.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2334 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/mtd_nand.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/components/drivers/include/drivers/mtd_nand.h b/components/drivers/include/drivers/mtd_nand.h
index d9d17194e4..4ea2a92d40 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;