1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-04-12 00:40:07 +02:00
Files
u-boot-megous/drivers
Linus Walleij 770e77051e mtd: rawnand: nand_base: Handle algorithm selection
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@amarulasolutions.com>
Acked-by: William Zhang <william.zhang@broadcom.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Tom Rini <trini@konsulko.com> [am335x_evm]
Link: https://lore.kernel.org/all/20230407134008.1939717-3-linus.walleij@linaro.org/
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
2023-04-22 23:07:57 +02:00
..
2023-03-03 09:49:02 -05:00
2023-02-10 07:41:39 -05:00
2021-10-05 08:50:15 -04:00
2022-09-16 11:05:16 -04:00
2022-01-13 07:57:49 -05:00
2023-04-11 06:51:56 +02:00
2023-03-02 17:45:58 -05:00
2023-01-20 12:27:24 -05:00
2023-04-03 16:45:41 -04:00
2023-04-01 10:11:50 +02:00
2023-01-24 13:55:05 +01:00
2023-04-03 16:45:41 -04:00
2022-10-11 16:03:03 -04:00
2023-03-27 15:19:57 -04:00
2023-02-10 07:41:41 -05:00
2023-03-02 17:45:58 -05:00