2 * Atheros AR934X SoCs built-in NAND Flash Controller support
4 * Copyright (C) 2011-2012 Gabor Juhos <juhosg@openwrt.org>
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published
8 * by the Free Software Foundation.
11 #ifndef _ATH79_DEV_NFC_H
12 #define _ATH79_DEV_NFC_H
15 enum ar934x_nfc_ecc_mode
;
17 #ifdef CONFIG_ATH79_DEV_NFC
18 void ath79_nfc_set_parts(struct mtd_partition
*parts
, int nr_parts
);
19 void ath79_nfc_set_select_chip(void (*f
)(int chip_no
));
20 void ath79_nfc_set_scan_fixup(int (*f
)(struct mtd_info
*mtd
));
21 void ath79_nfc_set_swap_dma(bool enable
);
22 void ath79_nfc_set_ecc_mode(enum ar934x_nfc_ecc_mode mode
);
23 void ath79_register_nfc(void);
25 static inline void ath79_nfc_set_parts(struct mtd_partition
*parts
,
27 static inline void ath79_nfc_set_select_chip(void (*f
)(int chip_no
)) {}
28 static inline void ath79_nfc_set_scan_fixup(int (*f
)(struct mtd_info
*mtd
)) {}
29 static inline void ath79_nfc_set_swap_dma(bool enable
) {}
30 static inline void ath79_nfc_set_ecc_mode(enum ar934x_nfc_ecc_mode mode
) {}
31 static inline void ath79_register_nfc(void) {}
34 #endif /* _ATH79_DEV_NFC_H */