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>;
>   nand-ecc-step-size = <512>;
> 
> This is handled by the Linux kernel but U-Boot core does
> not respect this. Fix it up by parsing the algorithm and
> preserve the behaviour using this property to select
> software BCH as far as possible.
> 
> Reviewed-by: Michael Trimarchi <mich...@amarulasolutions.com>
> Acked-by: William Zhang <william.zh...@broadcom.com>
> Signed-off-by: Linus Walleij <linus.wall...@linaro.org>

Tested-by: Tom Rini <tr...@konsulko.com> [am335x_evm]

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to