u-boot-brain/drivers/mtd/nand
William Zhang e365de9051 drivers: nand: brcmnand: fix nand_chip ecc layout structure
The current brcmnand driver is based on 4.18 linux kernel which uses
mtd_set_ooblayout to set ecc layout. But nand base code in u-boot is from
old kernel which does not use this new API and expect nand_chip.ecc.layout
structure to be set. This cause nand_scan_tail function running into a bug
check if the device has a different oob size than the default ones.

This patch ports the brcmstb_choose_ecc_layout function from kernel 4.6.7
that supports the ecc layout struture and replaces the mtd_set_ooblayout
method

Signed-off-by: William Zhang <william.zhang@broadcom.com>
Reviewed-by: Philippe Reynes <philippe.reynes@softathome.com>
2019-10-25 17:20:43 +02:00
..
raw drivers: nand: brcmnand: fix nand_chip ecc layout structure 2019-10-25 17:20:43 +02:00
spi mtd: spinand: Sync GigaDevice GD5F1GQ4UExxG with latest Linux version 2019-04-12 10:54:11 +05:30
bbt.c mtd: nand: Add core infrastructure to deal with NAND devices 2018-09-20 20:10:49 +05:30
core.c mtd: nand: Add core infrastructure to deal with NAND devices 2018-09-20 20:10:49 +05:30
Kconfig mtd: nand: Add core infrastructure to support SPI NANDs 2018-09-20 20:10:49 +05:30
Makefile mtd: nand: Add core infrastructure to support SPI NANDs 2018-09-20 20:10:49 +05:30