aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/arch/mips/ath79/dev-nfc.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-09-19 18:43:42 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-09-19 18:43:42 +0000
commit83915a8d78db3446f05dcaad992afd53256f36ea (patch)
tree466b403ded5a269b8e2e5009803534dc27e78300 /target/linux/ar71xx/files/arch/mips/ath79/dev-nfc.c
parentd6fef0cb396801ccf8bc507244a6ac3874fc12cc (diff)
downloadupstream-83915a8d78db3446f05dcaad992afd53256f36ea.tar.gz
upstream-83915a8d78db3446f05dcaad992afd53256f36ea.tar.bz2
upstream-83915a8d78db3446f05dcaad992afd53256f36ea.zip
ar71xx: add ath79_nfc_set_ecc_mode helper
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38070
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ath79/dev-nfc.c')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/dev-nfc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/dev-nfc.c b/target/linux/ar71xx/files/arch/mips/ath79/dev-nfc.c
index 5208279ad9..d140cd0eab 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/dev-nfc.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/dev-nfc.c
@@ -119,6 +119,11 @@ void __init ath79_nfc_set_swap_dma(bool enable)
ath79_nfc_data.swap_dma = enable;
}
+void __init ath79_nfc_set_ecc_mode(enum ar934x_nfc_ecc_mode mode)
+{
+ ath79_nfc_data.ecc_mode = mode;
+}
+
void __init ath79_nfc_set_parts(struct mtd_partition *parts, int nr_parts)
{
ath79_nfc_data.parts = parts;