aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-09-19 18:43:43 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-09-19 18:43:43 +0000
commit94f3076a60f03611f917590c738815714dfa3637 (patch)
tree4ddbd429100da14ffbe4e1ee3a9de680cc9a0328 /target
parent2c046acf636c92ea0f31a53ceb59f4a662e96f2b (diff)
downloadupstream-94f3076a60f03611f917590c738815714dfa3637.tar.gz
upstream-94f3076a60f03611f917590c738815714dfa3637.tar.bz2
upstream-94f3076a60f03611f917590c738815714dfa3637.zip
ar71xx: wndr4300: enable HW ECC mode for the NAND controller
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38071 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-wndr4300.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wndr4300.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wndr4300.c
index 715fb064fe..0ecedff115 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wndr4300.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wndr4300.c
@@ -14,6 +14,9 @@
#include <linux/platform_device.h>
#include <linux/ath9k_platform.h>
#include <linux/ar8216_platform.h>
+#include <linux/mtd/mtd.h>
+#include <linux/mtd/nand.h>
+#include <linux/platform/ar934x_nfc.h>
#include <asm/mach-ath79/ar71xx_regs.h>
@@ -171,6 +174,7 @@ static void __init wndr4300_setup(void)
ath79_eth0_pll_data.pll_1000 = 0x06000000;
ath79_register_eth(0);
+ ath79_nfc_set_ecc_mode(AR934X_NFC_ECC_HW);
ath79_register_nfc();
ath79_register_usb();