summaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/patches-4.19/005-linksys_hardcode_nand_ecc_settings.patch
blob: dfe13bae7b56a9baa670f7018e6084250a5a67e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Newer Linksys boards might come with a Winbond W29N02GV which can be
configured in different ways. Make sure we configure it the same way
as the older chips so everything keeps working.

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

--- a/arch/arm/boot/dts/armada-385-linksys.dtsi
+++ b/arch/arm/boot/dts/armada-385-linksys.dtsi
@@ -160,6 +160,8 @@
 		reg = <0>;
 		label = "pxa3xx_nand-0";
 		nand-rb = <0>;
+		nand-ecc-strength = <4>;
+		nand-ecc-step-size = <512>;
 		marvell,nand-keep-config;
 		nand-on-flash-bbt;
 	};