mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 09:41:44 +00:00
a06347c04c
Fields Peak complies with the ISO/IEC 14443A/B, 15693, 18092, and JIS X 6319-4. It is an NCI based controller. RF Protocols supported: - NFC Forum Type 1 Tags (Jewel, Topaz) - NFC Forum Type 2 Tags (Mifare UL) - NFC Forum Type 3 Tags (FeliCa) - NFC Forum Type 4A (ISO/IEC 14443 A-4 106kbps to 848kbps) - NFC Forum Type 4B (ISO/IEC 14443 B-4 106kbps to 848kbps) - NFCIP in passive and active modes (ISO/IEC 18092 106kbps to 424kbps) - B’ (based on ISO/IEC 14443 B-2) - iCLASS (based on ISO/IEC 15693-2) - Vicinity cards (ISO/IEC 15693-3) - Kovio tags (NFC Forum Type 2) The device can be enumerated using ACPI using the id INT339A. The 1st GPIO is the IRQ and the 2nd is the RESET pin. Signed-off-by: Robert Dolca <robert.dolca@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
39 lines
1.3 KiB
C
39 lines
1.3 KiB
C
/* -------------------------------------------------------------------------
|
|
* Copyright (C) 2014-2016, Intel Corporation
|
|
*
|
|
* 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.
|
|
* -------------------------------------------------------------------------
|
|
*/
|
|
|
|
#ifndef __LOCAL_FDP_H_
|
|
#define __LOCAL_FDP_H_
|
|
|
|
#include <net/nfc/nci_core.h>
|
|
#include <linux/gpio/consumer.h>
|
|
|
|
struct fdp_i2c_phy {
|
|
struct i2c_client *i2c_dev;
|
|
struct gpio_desc *power_gpio;
|
|
struct nci_dev *ndev;
|
|
|
|
/* < 0 if i2c error occurred */
|
|
int hard_fault;
|
|
uint16_t next_read_size;
|
|
};
|
|
|
|
int fdp_nci_probe(struct fdp_i2c_phy *phy, struct nfc_phy_ops *phy_ops,
|
|
struct nci_dev **ndev, int tx_headroom, int tx_tailroom,
|
|
u8 clock_type, u32 clock_freq, u8 *fw_vsc_cfg);
|
|
void fdp_nci_remove(struct nci_dev *ndev);
|
|
int fdp_nci_recv_frame(struct nci_dev *ndev, struct sk_buff *skb);
|
|
|
|
#endif /* __LOCAL_FDP_H_ */
|