summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/bcm5301x-nand-cs0-bch1.dtsi
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2016-06-06 10:43:50 +0300
committerFlorian Fainelli <f.fainelli@gmail.com>2016-07-07 05:42:33 +0300
commit70a0ae1c33572f012b734d4b574f38136c57f1a0 (patch)
tree46233f6c683b12ed4f494d0b5c1ec7f7eb72f001 /arch/arm/boot/dts/bcm5301x-nand-cs0-bch1.dtsi
parent8ab5f1fbd39c29125403678a0caf0a71046da361 (diff)
downloadlinux-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/bcm5301x-nand-cs0-bch1.dtsi')
-rw-r--r--arch/arm/boot/dts/bcm5301x-nand-cs0-bch1.dtsi15
1 files changed, 15 insertions, 0 deletions
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>;
+};