mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
NFC: Initial support for Inside Secure microread
Inside Secure microread is an HCI based NFC chipset. This initial support includes reader and p2p (Target and initiator) modes. Signed-off-by: Eric Lapuyade <eric.lapuyade@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
committed by
Samuel Ortiz
parent
2323e6fc62
commit
cfad1ba871
@@ -27,5 +27,6 @@ config NFC_WILINK
|
||||
into the kernel or say M to compile it as module.
|
||||
|
||||
source "drivers/nfc/pn544/Kconfig"
|
||||
source "drivers/nfc/microread/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#
|
||||
|
||||
obj-$(CONFIG_NFC_PN544) += pn544/
|
||||
obj-$(CONFIG_NFC_MICROREAD) += microread/
|
||||
obj-$(CONFIG_NFC_PN533) += pn533.o
|
||||
obj-$(CONFIG_NFC_WILINK) += nfcwilink.o
|
||||
|
||||
|
||||
13
drivers/nfc/microread/Kconfig
Normal file
13
drivers/nfc/microread/Kconfig
Normal file
@@ -0,0 +1,13 @@
|
||||
config NFC_MICROREAD
|
||||
tristate "Inside Secure microread NFC driver"
|
||||
depends on NFC_HCI
|
||||
select CRC_CCITT
|
||||
default n
|
||||
---help---
|
||||
This module contains the main code for Inside Secure microread
|
||||
NFC chipsets. It implements the chipset HCI 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 microread.
|
||||
Say N if unsure.
|
||||
5
drivers/nfc/microread/Makefile
Normal file
5
drivers/nfc/microread/Makefile
Normal file
@@ -0,0 +1,5 @@
|
||||
#
|
||||
# Makefile for Microread HCI based NFC driver
|
||||
#
|
||||
|
||||
obj-$(CONFIG_NFC_MICROREAD) += microread.o
|
||||
728
drivers/nfc/microread/microread.c
Normal file
728
drivers/nfc/microread/microread.c
Normal file
File diff suppressed because it is too large
Load Diff
33
drivers/nfc/microread/microread.h
Normal file
33
drivers/nfc/microread/microread.h
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright (C) 2011 - 2012 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the
|
||||
* Free Software Foundation, Inc.,
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef __LOCAL_MICROREAD_H_
|
||||
#define __LOCAL_MICROREAD_H_
|
||||
|
||||
#include <net/nfc/hci.h>
|
||||
|
||||
#define DRIVER_DESC "NFC driver for microread"
|
||||
|
||||
int microread_probe(void *phy_id, struct nfc_phy_ops *phy_ops, char *llc_name,
|
||||
int phy_headroom, int phy_tailroom, int phy_payload,
|
||||
struct nfc_hci_dev **hdev);
|
||||
|
||||
void microread_remove(struct nfc_hci_dev *hdev);
|
||||
|
||||
#endif /* __LOCAL_MICROREAD_H_ */
|
||||
35
include/linux/platform_data/microread.h
Normal file
35
include/linux/platform_data/microread.h
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* Driver include for the PN544 NFC chip.
|
||||
*
|
||||
* Copyright (C) 2011 Tieto Poland
|
||||
* Copyright (C) 2012 Intel Corporation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef _MICROREAD_H
|
||||
#define _MICROREAD_H
|
||||
|
||||
#include <linux/i2c.h>
|
||||
|
||||
#define MICROREAD_DRIVER_NAME "microread"
|
||||
|
||||
/* board config platform data for microread */
|
||||
struct microread_nfc_platform_data {
|
||||
unsigned int rst_gpio;
|
||||
unsigned int irq_gpio;
|
||||
unsigned int ioh_gpio;
|
||||
};
|
||||
|
||||
#endif /* _MICROREAD_H */
|
||||
Reference in New Issue
Block a user