更改许可

This commit is contained in:
heyuanjie87
2018-09-20 09:41:05 +08:00
parent 3e71dc88f3
commit b620c10014
4 changed files with 28 additions and 60 deletions

View File

@@ -601,7 +601,7 @@ static const struct mtd_ops _ops =
nand_block_markbad,
};
int rt_mtd_nand_init(rt_nand_t *nand, int blk_size, int page_size, int blks_pc, int oob_size)
int rt_mtd_nand_init(rt_nand_t *nand, int blk_size, int page_size, int oob_size)
{
uint8_t *buf;
@@ -616,7 +616,6 @@ int rt_mtd_nand_init(rt_nand_t *nand, int blk_size, int page_size, int blks_pc,
nand->buffers.ecccode = buf;
nand->pagebuf = 0; /* alloc when unaligen access */
nand->size = blk_size * blks_pc;
nand->pages_pb = blk_size / page_size;
nand->ecc._step = page_size / nand->ecc.stepsize;
nand->page_size = page_size;