DOC_LAYOUT_NBPLANES
mtd->erasesize = DOC_LAYOUT_BLOCK_SIZE * DOC_LAYOUT_NBPLANES;
pages_biblock = DOC_LAYOUT_PAGES_PER_BLOCK * DOC_LAYOUT_NBPLANES;
*block0 = sector / pages_biblock * DOC_LAYOUT_NBPLANES;
*page /= DOC_LAYOUT_NBPLANES;