1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-02-05 02:26:37 +01:00
Files
u-boot-megous/drivers
Linus Walleij ff33d3c87c 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.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
Acked-by: William Zhang <william.zhang@broadcom.com>
Link: https://lore.kernel.org/all/20230308212851.370939-1-linus.walleij@linaro.org/
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
2023-04-16 12:25:36 +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-04-10 12:17:58 +09: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