aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/include/linux/platform/ar934x_nfc.h
blob: 3e4c6d9883a0020059f2e6e19405af1ecec5a91a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Platform data definition for the built-in NAND controller of the
 * Atheros AR934x SoCs
 *
 * Copyright (C) 2011-2012 Gabor Juhos <juhosg@openwrt.org>
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 as published
 * by the Free Software Foundation.
 */

#ifndef _AR934X_NFC_PLATFORM_H
#define _AR934X_NFC_PLATFORM_H

#define AR934X_NFC_DRIVER_NAME		"ar934x-nfc"

struct mtd_info;
struct mtd_partition;

struct ar934x_nfc_platform_data {
	const char *name;
	struct mtd_partition *parts;
	int nr_parts;

	void (*hw_reset)(bool active);
	void (*select_chip)(int chip_no);
	int (*scan_fixup)(struct mtd_info *mtd);
};

#endif /* _AR934X_NFC_PLATFORM_H */