Home
last modified time | relevance | path

Searched hist:f1892190deb701c41b5727da5250f4a4ddbb6483 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/mtd/
H A Dmtd_blk.cf1892190deb701c41b5727da5250f4a4ddbb6483 Tue Jun 18 09:24:58 UTC 2019 Jason Zhu <jason.zhu@rock-chips.com> mtd: add desc->lba to mtd block device

The desc->lba is based on mtd->size: desc->lba = mtd->size >> 9;

If the mtd storage is spi nand or nand flash, reserve 4 blocks
for BBT(Bad Block Table). Then desc->lba is
desc->lba = (mtd->size >> 9) - (mtd->erasesize >> 9) * 4;

Change-Id: I70702623895fe05cec614c4c3ca5f3f6c41d26ca
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>