mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-06 13:14:27 +00:00
e365de9051
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> |
||
---|---|---|
.. | ||
bcm6368_nand.c | ||
bcm6838_nand.c | ||
bcm6858_nand.c | ||
bcm63158_nand.c | ||
brcmnand.c | ||
brcmnand.h | ||
brcmnand_compat.c | ||
brcmnand_compat.h | ||
Makefile |