diff options
author | Eric Lapuyade <eric.lapuyade@intel.com> | 2012-05-07 06:31:29 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-05-15 17:30:30 -0400 |
commit | bbed0deefbb4bb1ab09e0dbc29e00fda86bb7838 (patch) | |
tree | 7199c66beb6473acf51360f1ecc9f40db2d6d168 /include/linux/nfc | |
parent | e5fe4cf8ee2bf15c0f44f9eba06147cdddbddf6d (diff) |
NFC: HCI based pn544 driver
This is an NFC driver for NXP pn544.
Unlike pn544.c, this one is based on the NFC HCI and SHDLC kernel layers.
Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/linux/nfc')
-rw-r--r-- | include/linux/nfc/pn544.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/nfc/pn544.h b/include/linux/nfc/pn544.h index 7ab8521f2347..9890bbaf4328 100644 --- a/include/linux/nfc/pn544.h +++ b/include/linux/nfc/pn544.h | |||
@@ -84,6 +84,12 @@ struct pn544_fw_packet { | |||
84 | }; | 84 | }; |
85 | 85 | ||
86 | #ifdef __KERNEL__ | 86 | #ifdef __KERNEL__ |
87 | enum { | ||
88 | NFC_GPIO_ENABLE, | ||
89 | NFC_GPIO_FW_RESET, | ||
90 | NFC_GPIO_IRQ | ||
91 | }; | ||
92 | |||
87 | /* board config */ | 93 | /* board config */ |
88 | struct pn544_nfc_platform_data { | 94 | struct pn544_nfc_platform_data { |
89 | int (*request_resources) (struct i2c_client *client); | 95 | int (*request_resources) (struct i2c_client *client); |
@@ -91,6 +97,7 @@ struct pn544_nfc_platform_data { | |||
91 | void (*enable) (int fw); | 97 | void (*enable) (int fw); |
92 | int (*test) (void); | 98 | int (*test) (void); |
93 | void (*disable) (void); | 99 | void (*disable) (void); |
100 | int (*get_gpio)(int type); | ||
94 | }; | 101 | }; |
95 | #endif /* __KERNEL__ */ | 102 | #endif /* __KERNEL__ */ |
96 | 103 | ||