aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/patches-5.4/005-linksys_hardcode_nand_ecc_settings.patch
diff options
context:
space:
mode:
authorDENG Qingfang <dengqf6@mail2.sysu.edu.cn>2020-03-04 20:46:10 +0800
committerHauke Mehrtens <hauke@hauke-m.de>2020-04-13 22:41:37 +0200
commit70193703a9ef796be74e3afe963d5c463b8cbccc (patch)
tree9111a658f481984275dd90f75682df1d3d47d333 /target/linux/mvebu/patches-5.4/005-linksys_hardcode_nand_ecc_settings.patch
parent85ef69b20299c2c4f42d6bfbfaf807358ebe2078 (diff)
downloadupstream-70193703a9ef796be74e3afe963d5c463b8cbccc.tar.gz
upstream-70193703a9ef796be74e3afe963d5c463b8cbccc.tar.bz2
upstream-70193703a9ef796be74e3afe963d5c463b8cbccc.zip
mvebu: copy files and patches to 5.4
Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
Diffstat (limited to 'target/linux/mvebu/patches-5.4/005-linksys_hardcode_nand_ecc_settings.patch')
-rw-r--r--target/linux/mvebu/patches-5.4/005-linksys_hardcode_nand_ecc_settings.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/target/linux/mvebu/patches-5.4/005-linksys_hardcode_nand_ecc_settings.patch b/target/linux/mvebu/patches-5.4/005-linksys_hardcode_nand_ecc_settings.patch
new file mode 100644
index 0000000000..dfe13bae7b
--- /dev/null
+++ b/target/linux/mvebu/patches-5.4/005-linksys_hardcode_nand_ecc_settings.patch
@@ -0,0 +1,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;
+ };