ARM: BCM5301X: Fix NAND ECC parameters for D-Link DIR-885L
This device uses BCH-1 instead of BCH-8. This fixes ECC errors and makes NAND usable with brcmnand. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
This commit is contained in:
parent
8ab5f1fbd3
commit
70a0ae1c33
|
@ -10,7 +10,7 @@
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
#include "bcm4708.dtsi"
|
#include "bcm4708.dtsi"
|
||||||
#include "bcm5301x-nand-cs0-bch8.dtsi"
|
#include "bcm5301x-nand-cs0-bch1.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
compatible = "dlink,dir-885l", "brcm,bcm47094", "brcm,bcm4708";
|
compatible = "dlink,dir-885l", "brcm,bcm47094", "brcm,bcm4708";
|
||||||
|
|
15
arch/arm/boot/dts/bcm5301x-nand-cs0-bch1.dtsi
Normal file
15
arch/arm/boot/dts/bcm5301x-nand-cs0-bch1.dtsi
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
/*
|
||||||
|
* Broadcom Northstar NAND.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2016 Rafał Miłecki <rafal.milecki@gmail.com>
|
||||||
|
*
|
||||||
|
* Licensed under the ISC license.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "bcm5301x-nand-cs0.dtsi"
|
||||||
|
|
||||||
|
&nandcs {
|
||||||
|
nand-ecc-algo = "bch";
|
||||||
|
nand-ecc-strength = <1>;
|
||||||
|
nand-ecc-step-size = <512>;
|
||||||
|
};
|
Loading…
Reference in a new issue