Vincent Cuissard | dc14bde | 2015-06-11 14:00:19 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015, Marvell International Ltd. |
| 3 | * |
| 4 | * This software file (the "File") is distributed by Marvell International |
| 5 | * Ltd. under the terms of the GNU General Public License Version 2, June 1991 |
| 6 | * (the "License"). You may use, redistribute and/or modify this File in |
| 7 | * accordance with the terms and conditions of the License, a copy of which |
| 8 | * is available on the worldwide web at |
| 9 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. |
| 10 | * |
| 11 | * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE |
| 12 | * IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE |
| 13 | * ARE EXPRESSLY DISCLAIMED. The License provides additional details about |
| 14 | * this warranty disclaimer. |
| 15 | */ |
| 16 | |
| 17 | #ifndef _NFCMRVL_PTF_H_ |
| 18 | #define _NFCMRVL_PTF_H_ |
| 19 | |
| 20 | struct nfcmrvl_platform_data { |
| 21 | /* |
| 22 | * Generic |
| 23 | */ |
| 24 | |
| 25 | /* GPIO that is wired to RESET_N signal */ |
| 26 | unsigned int reset_n_io; |
| 27 | /* Tell if transport is muxed in HCI one */ |
| 28 | unsigned int hci_muxed; |
Vincent Cuissard | e097dc62 | 2015-06-11 14:00:20 +0200 | [diff] [blame] | 29 | |
| 30 | /* |
| 31 | * UART specific |
| 32 | */ |
| 33 | |
| 34 | /* Tell if UART needs flow control at init */ |
| 35 | unsigned int flow_control; |
| 36 | /* Tell if firmware supports break control for power management */ |
| 37 | unsigned int break_control; |
Vincent Cuissard | b5b3e23 | 2015-10-26 10:27:41 +0100 | [diff] [blame] | 38 | |
| 39 | |
| 40 | /* |
| 41 | * I2C specific |
| 42 | */ |
| 43 | |
| 44 | unsigned int irq; |
| 45 | unsigned int irq_polarity; |
Vincent Cuissard | dc14bde | 2015-06-11 14:00:19 +0200 | [diff] [blame] | 46 | }; |
| 47 | |
| 48 | #endif /* _NFCMRVL_PTF_H_ */ |