mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
mtd: rawnand: stm32_fmc2: set available OOB bytes per page
File system such as YAFFS2 need to know the number of available OOB bytes per page to be able to choose if they should locate their metadata in the data area or in the spare area. Signed-off-by: Christophe Kerello <christophe.kerello@foss.st.com> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
This commit is contained in:
committed by
Patrice Chotard
parent
7d879baa6f
commit
4c28c4d9a3
@@ -1034,6 +1034,7 @@ static int stm32_fmc2_nfc_probe(struct udevice *dev)
|
||||
ecclayout->eccpos[i] = oob_index;
|
||||
ecclayout->oobfree->offset = oob_index;
|
||||
ecclayout->oobfree->length = mtd->oobsize - ecclayout->oobfree->offset;
|
||||
ecclayout->oobavail = ecclayout->oobfree->length;
|
||||
chip->ecc.layout = ecclayout;
|
||||
|
||||
if (chip->options & NAND_BUSWIDTH_16)
|
||||
|
||||
Reference in New Issue
Block a user