diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-06-06 10:43:50 +0300 |
---|---|---|
committer | Florian Fainelli <f.fainelli@gmail.com> | 2016-07-07 05:42:33 +0300 |
commit | 70a0ae1c33572f012b734d4b574f38136c57f1a0 (patch) | |
tree | 46233f6c683b12ed4f494d0b5c1ec7f7eb72f001 /arch/arm/boot/dts | |
parent | 8ab5f1fbd39c29125403678a0caf0a71046da361 (diff) | |
download | linux-70a0ae1c33572f012b734d4b574f38136c57f1a0.tar.xz |
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>
Diffstat (limited to 'arch/arm/boot/dts')
-rw-r--r-- | arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts | 2 | ||||
-rw-r--r-- | arch/arm/boot/dts/bcm5301x-nand-cs0-bch1.dtsi | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts index 50cf80489cbf..c8c0b3616935 100644 --- a/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts +++ b/arch/arm/boot/dts/bcm47094-dlink-dir-885l.dts @@ -10,7 +10,7 @@ /dts-v1/; #include "bcm4708.dtsi" -#include "bcm5301x-nand-cs0-bch8.dtsi" +#include "bcm5301x-nand-cs0-bch1.dtsi" / { compatible = "dlink,dir-885l", "brcm,bcm47094", "brcm,bcm4708"; diff --git a/arch/arm/boot/dts/bcm5301x-nand-cs0-bch1.dtsi b/arch/arm/boot/dts/bcm5301x-nand-cs0-bch1.dtsi new file mode 100644 index 000000000000..24b099c00f13 --- /dev/null +++ b/arch/arm/boot/dts/bcm5301x-nand-cs0-bch1.dtsi @@ -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>; +}; |