ar71xx: add ath79_nfc_set_ecc_mode helper
[openwrt/openwrt.git] / target / linux / ar71xx / files / arch / mips / ath79 / dev-nfc.c
index 5208279ad9773e6f296e80b04aa5816ba538c6ae..d140cd0eab1f878541e8afb63e092c63696524e5 100644 (file)
@@ -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;