NFC: nci: add generic uart support
authorVincent Cuissard <cuissard@marvell.com>
Thu, 11 Jun 2015 09:25:47 +0000 (11:25 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 11 Jun 2015 21:37:37 +0000 (23:37 +0200)
commit9961127d4bce6325e9a0b0fb105e0c85a6c62cb7
tree33d59530eba0b11a835b869af86ee69e17ea7e34
parent4a2b947f56b33cde68d6e0543160ea09ce651fd9
NFC: nci: add generic uart support

Some NFC controller supports UART as host interface.
As with SPI, a lot of code can be shared between vendor
drivers. This patch add the generic support of UART and
provides some extension API for vendor specific needs.

This code is strongly inspired by the Bluetooth HCI ldisc
implementation. NCI UART vendor drivers will have to register
themselves to this layer via nci_uart_register.

Underlying tty will have to be configured from user land
thanks to an ioctl.

Signed-off-by: Vincent Cuissard <cuissard@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
include/net/nfc/nci.h
include/net/nfc/nci_core.h
include/uapi/linux/tty.h
net/nfc/nci/Kconfig
net/nfc/nci/Makefile
net/nfc/nci/uart.c [new file with mode: 0644]