1/*
2 *  Atheros AR934X SoCs built-in NAND Flash Controller support
3 *
4 *  Copyright (C) 2011-2012 Gabor Juhos <juhosg@openwrt.org>
5 *
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.
9 */
10
11#ifndef _ATH79_DEV_NFC_H
12#define _ATH79_DEV_NFC_H
13
14#ifdef CONFIG_ATH79_DEV_NFC
15extern struct ar934x_nfc_platform_data ath79_nfc_data;
16
17void ath79_nfc_set_parts(struct mtd_partition *parts, int nr_parts);
18void ath79_nfc_set_select_chip(void (*f)(int chip_no));
19void ath79_nfc_set_scan_fixup(int (*f)(struct mtd_info *mtd));
20void ath79_register_nfc(void);
21void ath79_init_nfc_pdata(void);
22#else
23static inline void ath79_nfc_set_parts(struct mtd_partition *parts,
24				       int nr_parts) {}
25static inline void ath79_nfc_set_select_chip(void (*f)(int chip_no)) {}
26static inline void ath79_nfc_set_scan_fixup(int (*f)(struct mtd_info *mtd)) {}
27static inline void ath79_register_nfc(void) {}
28static inline void ath79_init_nfc_pdata(void) {}
29#endif
30
31#endif /* _ATH79_DEV_NFC_H */
32