diff options
| author | Linus Walleij <[email protected]> | 2023-04-07 15:40:05 +0200 |
|---|---|---|
| committer | Dario Binacchi <[email protected]> | 2023-04-22 23:07:57 +0200 |
| commit | 770e77051ec50b46c2aed4c4a355bd79054cf274 (patch) | |
| tree | afdf8f326ec12a424201c38c36b0e3603fab040e /include | |
| parent | fee6b9b734950edf33128cbd76142bdf3d29637f (diff) | |
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 <[email protected]>
Acked-by: William Zhang <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Tested-by: Tom Rini <[email protected]> [am335x_evm]
Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Dario Binacchi <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
