Matti J. Aaltonen | 0329326 | 2011-01-12 17:00:47 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Driver include for the PN544 NFC chip. |
| 3 | * |
| 4 | * Copyright (C) Nokia Corporation |
| 5 | * |
| 6 | * Author: Jari Vanhala <ext-jari.vanhala@nokia.com> |
| 7 | * Contact: Matti Aaltoenn <matti.j.aaltonen@nokia.com> |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or |
| 10 | * modify it under the terms of the GNU General Public License |
| 11 | * version 2 as published by the Free Software Foundation. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
Jeff Kirsher | 98b32de | 2013-12-06 08:56:16 -0800 | [diff] [blame] | 19 | * along with this program; if not, see <http://www.gnu.org/licenses/>. |
Matti J. Aaltonen | 0329326 | 2011-01-12 17:00:47 -0800 | [diff] [blame] | 20 | */ |
| 21 | |
| 22 | #ifndef _PN544_H_ |
| 23 | #define _PN544_H_ |
| 24 | |
| 25 | #include <linux/i2c.h> |
| 26 | |
Eric Lapuyade | bbed0de | 2012-05-07 12:31:29 +0200 | [diff] [blame] | 27 | enum { |
| 28 | NFC_GPIO_ENABLE, |
| 29 | NFC_GPIO_FW_RESET, |
| 30 | NFC_GPIO_IRQ |
| 31 | }; |
| 32 | |
Matti J. Aaltonen | 0329326 | 2011-01-12 17:00:47 -0800 | [diff] [blame] | 33 | /* board config */ |
| 34 | struct pn544_nfc_platform_data { |
| 35 | int (*request_resources) (struct i2c_client *client); |
| 36 | void (*free_resources) (void); |
| 37 | void (*enable) (int fw); |
| 38 | int (*test) (void); |
| 39 | void (*disable) (void); |
Eric Lapuyade | bbed0de | 2012-05-07 12:31:29 +0200 | [diff] [blame] | 40 | int (*get_gpio)(int type); |
Matti J. Aaltonen | 0329326 | 2011-01-12 17:00:47 -0800 | [diff] [blame] | 41 | }; |
Matti J. Aaltonen | 0329326 | 2011-01-12 17:00:47 -0800 | [diff] [blame] | 42 | |
| 43 | #endif /* _PN544_H_ */ |