blob: 8b1daef2bb1f8c6ff6ad2634ff62a09cfd685157 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
/*
* intel_mid_hsi.h
*
* Header for the Intel HSI controller driver.
*
* Copyright (C) 2010, 2011 Intel Corporation. All rights reserved.
*
* Contact: Jim Stanley <jim.stanley@intel.com>
* Olivier Stoltz Douchet <olivierx.stoltz-douchet@intel.com>
* Faouaz TENOUTIT <faouazx.tenoutit@intel.com>
*
* Modified from OMAP SSI driver
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#ifndef __INTEL_MID_HSI_H__
#define __INTEL_MID_HSI_H__
#define HSI_PNW_PCI_DEVICE_ID 0x833 /* PCI id for Penwell HSI */
#define HSI_CLV_PCI_DEVICE_ID 0x902 /* PCI id for Cloverview HSI */
#define HSI_TNG_PCI_DEVICE_ID 0x1197 /* PCI id for Tangier HSI */
#define HSI_PNW_MASTER_DMA_ID 0x834 /* PCI id for Penwell DWAHB dma */
#define HSI_CLV_MASTER_DMA_ID 0x903 /* PCI id for Cloverview DWAHB dma */
#define HSI_MID_MAX_CHANNELS 8
/**
* struct hsi_mid_platform_data - HSI platform specific data for clients
* @rx_dma_channels: HSI-channel indexed list of RX DMA channel (-1 if no DMA)
* @rx_sg_entries: HSI-channel indexed list of RX scatter gather entries
* @rx_fifo_size: HSI-channel indexed list of RX FIFO size in HSI frames
* @rx_fifo_thres: HSI-channel indexed list of RX FIFO threshold in HSI frames
* @tx_dma_channels: HSI-channel indexed list of TX DMA channel (-1 if no DMA)
* @tx_sg_entries: HSI-channel indexed list of TX scatter gather entries
* @tx_fifo_size: HSI-channel indexed list of TX FIFO size in HSI frames
* @tx_fifo_thres: HSI-channel indexed list of TX FIFO threshold in HSI frames
* @tx_priorities: HSI-channel indexed list of TX priorities
* @gpio_mdm_rst_out: GPIO index for modem reset input
* @gpio_mdm_pwr_on: GPIO index for modem power on
* @gpio_mdm_rst_bbn: GPIO index for modem reset request
* @gpio_fcdp_rb: GPIO index for modem core dump
*/
struct hsi_mid_platform_data {
int rx_dma_channels[HSI_MID_MAX_CHANNELS];
int rx_sg_entries[HSI_MID_MAX_CHANNELS];
int rx_fifo_sizes[HSI_MID_MAX_CHANNELS];
int rx_fifo_thres[HSI_MID_MAX_CHANNELS];
int tx_dma_channels[HSI_MID_MAX_CHANNELS];
int tx_sg_entries[HSI_MID_MAX_CHANNELS];
int tx_fifo_sizes[HSI_MID_MAX_CHANNELS];
int tx_fifo_thres[HSI_MID_MAX_CHANNELS];
int tx_priorities[HSI_MID_MAX_CHANNELS];
/* FIXME: the next four entries need to go in a separate client specific
* section */
int gpio_mdm_rst_out;
int gpio_mdm_pwr_on;
int gpio_mdm_rst_bbn;
int gpio_fcdp_rb;
};
struct hsi_mid_pci_platform_data {
int gpio_wake;
bool use_oob_cawake;
};
#endif /* __INTEL_MID_HSI_H__ */
|