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

Tom Rini trini at konsulko.com
Fri Apr 7 19:46:01 CEST 2023


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 <michael at amarulasolutions.com>
> Acked-by: William Zhang <william.zhang at broadcom.com>
> Signed-off-by: Linus Walleij <linus.walleij at linaro.org>

Tested-by: Tom Rini <trini at konsulko.com> [am335x_evm]

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230407/c6f53e90/attachment.sig>


More information about the U-Boot mailing list