forked from beagleboard/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NFC: st21nfcb: Add driver for STMicroelectronics ST21NFCB NFC chip
Add driver for STMicroelectronics ST21NFCB NFC controller. ST21NFCB is using NCI protocol and a proprietary low level transport protocol called NDLC used on top. NDLC: The protocol defines 2 types of frame: - One type carrying NCI data (referred as DATAFRAME frames). - One type carrying protocol information used for flow control and error control mechanisms (referred as SUPERVISOR frames). After each frame transmission to the NFC controller, the device host SHALL waitfor an ACK (SUPERVISOR frame) reception before sending a new frame. The NFC controller MAY send a frame at anytime to the device host. The NFC controller MAY send a specific WAIT supervisor frame to indicate to device host that a NCI data packet has been received but that it could take significant time before the NFC controller sends an ACK and thus allows next data reception. Signed-off-by: Christophe Ricard <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
- Loading branch information
Showing
10 changed files
with
1,047 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
config NFC_ST21NFCB | ||
tristate "STMicroelectronics ST21NFCB NFC driver" | ||
depends on NFC_NCI | ||
default n | ||
---help--- | ||
STMicroelectronics ST21NFCB core driver. It implements the chipset | ||
NCI logic and hooks into the NFC kernel APIs. Physical layers will | ||
register against it. | ||
|
||
To compile this driver as a module, choose m here. The module will | ||
be called st21nfcb. | ||
Say N if unsure. | ||
|
||
config NFC_ST21NFCB_I2C | ||
tristate "NFC ST21NFCB i2c support" | ||
depends on NFC_ST21NFCB && I2C | ||
---help--- | ||
This module adds support for the STMicroelectronics st21nfcb i2c interface. | ||
Select this if your platform is using the i2c bus. | ||
|
||
If you choose to build a module, it'll be called st21nfcb_i2c. | ||
Say N if unsure. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# | ||
# Makefile for ST21NFCB NCI based NFC driver | ||
# | ||
|
||
st21nfcb_i2c-objs = i2c.o | ||
|
||
obj-$(CONFIG_NFC_ST21NFCB) += st21nfcb.o ndlc.o | ||
obj-$(CONFIG_NFC_ST21NFCB_I2C) += st21nfcb_i2c.o |
Oops, something went wrong.