Skip to content

Commit

Permalink
NFC: pn533: Separate physical layer from the core implementation
Browse files Browse the repository at this point in the history
The driver now has all core stuff isolated in one file, and all
the hardware link specifics in another. Writing a pn533 driver
on top of another hardware link is now just a matter of adding a
new file for that new hardware specifics.

The first user of this separation will be the i2c based pn532
driver that reuses pn533 core implementation on top of an i2c
layer.

Signed-off-by: Michael Thalmeier <michael.thalmeier@hale.at>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Michael Thalmeier authored and Samuel Ortiz committed Apr 9, 2016
1 parent 37f895d commit 9815c7c
Show file tree
Hide file tree
Showing 7 changed files with 1,081 additions and 924 deletions.
11 changes: 1 addition & 10 deletions drivers/nfc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@
menu "Near Field Communication (NFC) devices"
depends on NFC

config NFC_PN533
tristate "NXP PN533 USB driver"
depends on USB
help
NXP PN533 USB driver.
This driver provides support for NFC NXP PN533 devices.

Say Y here to compile support for PN533 devices into the
kernel or say M to compile it as module (pn533).

config NFC_WILINK
tristate "Texas Instruments NFC WiLink driver"
depends on TI_ST && NFC_NCI
Expand Down Expand Up @@ -70,6 +60,7 @@ config NFC_PORT100

source "drivers/nfc/fdp/Kconfig"
source "drivers/nfc/pn544/Kconfig"
source "drivers/nfc/pn533/Kconfig"
source "drivers/nfc/microread/Kconfig"
source "drivers/nfc/nfcmrvl/Kconfig"
source "drivers/nfc/st21nfca/Kconfig"
Expand Down
2 changes: 1 addition & 1 deletion drivers/nfc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
obj-$(CONFIG_NFC_FDP) += fdp/
obj-$(CONFIG_NFC_PN544) += pn544/
obj-$(CONFIG_NFC_MICROREAD) += microread/
obj-$(CONFIG_NFC_PN533) += pn533.o
obj-$(CONFIG_NFC_PN533) += pn533/
obj-$(CONFIG_NFC_WILINK) += nfcwilink.o
obj-$(CONFIG_NFC_MEI_PHY) += mei_phy.o
obj-$(CONFIG_NFC_SIM) += nfcsim.o
Expand Down
16 changes: 16 additions & 0 deletions drivers/nfc/pn533/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
config NFC_PN533
tristate
help
NXP PN533 core driver.
This driver provides core functionality for NXP PN533 NFC devices.

config NFC_PN533_USB
tristate "NFC PN533 device support (USB)"
depends on USB
select NFC_PN533
---help---
This module adds support for the NXP pn533 USB interface.
Select this if your platform is using the USB bus.

If you choose to build a module, it'll be called pn533_usb.
Say N if unsure.
7 changes: 7 additions & 0 deletions drivers/nfc/pn533/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#
# Makefile for PN533 NFC driver
#
pn533_usb-objs = usb.o

obj-$(CONFIG_NFC_PN533) += pn533.o
obj-$(CONFIG_NFC_PN533_USB) += pn533_usb.o
Loading

0 comments on commit 9815c7c

Please sign in to comment.