]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5a244d915dca358f517506781705780333db745f
tree33d59530eba0b11a835b869af86ee69e17ea7e34
parent271ac0a6748f4be8f7b3ce2799b48e997a8f106e
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]