Re: [PATCH v4 2/5] mtd: rawnand: nand_base: Handle algorithm selection

2023-04-07 Thread Tom Rini
On Fri, Apr 07, 2023 at 03:40:05PM +0200, Linus Walleij wrote: > For BRCMNAND with 1-bit BCH ECC (BCH-1) such as used on the > D-Link DIR-885L and DIR-890L routers, we need to explicitly > select the ECC like this in the device tree: > > nand-ecc-algo = "bch"; > nand-ecc-strength = <1>; > n

[PATCH v4 2/5] mtd: rawnand: nand_base: Handle algorithm selection

2023-04-07 Thread Linus Walleij
For BRCMNAND with 1-bit BCH ECC (BCH-1) such as used on the D-Link DIR-885L and DIR-890L routers, we need to explicitly select the ECC like this in the device tree: nand-ecc-algo = "bch"; nand-ecc-strength = <1>; nand-ecc-step-size = <512>; This is handled by the Linux kernel but U-Boot cor