2019-05-27 09:55:06 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
2015-10-22 12:11:42 +03:00
|
|
|
/* -------------------------------------------------------------------------
|
|
|
|
* Copyright (C) 2014-2016, Intel Corporation
|
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#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;
|
|
|
|
};
|
|
|
|
|
2021-07-25 00:47:36 +03:00
|
|
|
int fdp_nci_probe(struct fdp_i2c_phy *phy, const struct nfc_phy_ops *phy_ops,
|
2015-10-22 12:11:42 +03:00
|
|
|
struct nci_dev **ndev, int tx_headroom, int tx_tailroom,
|
2021-07-29 13:40:19 +03:00
|
|
|
u8 clock_type, u32 clock_freq, const u8 *fw_vsc_cfg);
|
2015-10-22 12:11:42 +03:00
|
|
|
void fdp_nci_remove(struct nci_dev *ndev);
|
|
|
|
|
|
|
|
#endif /* __LOCAL_FDP_H_ */
|