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
84
85
86
87
88
89
90
|
/*
* Copyright (C) 2010 Google, Inc.
* Copyright (C) 2010 Samsung Electronics.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* 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 __MODEM_IF_H__
#define __MODEM_IF_H__
enum modem_t {
IMC_XMM6260,
VIA_CBP71,
SEC_CMC221,
};
enum dev_format {
IPC_FMT,
IPC_RAW,
IPC_RFS,
IPC_CMD,
IPC_BOOT,
IPC_MULTI_RAW,
};
enum modem_io {
IODEV_MISC,
IODEV_NET,
IODEV_DUMMY,
};
enum modem_link {
LINKDEV_MIPI,
LINKDEV_DPRAM,
LINKDEV_SPI,
LINKDEV_USB,
LINKDEV_MAX,
};
enum modem_network {
UMTS_NETWORK,
CDMA_NETWORK,
LTE_NETWORK,
};
/* This structure is used in board-tuna-modem.c */
struct modem_io_t {
char *name;
int id;
enum dev_format format;
enum modem_io io_type;
enum modem_link link;
};
/* platform data */
struct modem_data {
char *name;
unsigned gpio_cp_on;
unsigned gpio_reset_req_n;
unsigned gpio_cp_reset;
unsigned gpio_pda_active;
unsigned gpio_phone_active;
unsigned gpio_cp_dump_int;
unsigned gpio_flm_uart_sel;
unsigned gpio_cp_warm_reset;
#ifdef CONFIG_LTE_MODEM_CMC221
unsigned gpio_cp_off;
unsigned gpio_slave_wakeup;
unsigned gpio_host_wakeup;
unsigned gpio_host_active;
#endif /*CONFIG_LTE_MODEM_CMC221*/
/* modem component */
enum modem_t modem_type;
enum modem_link link_type;
enum modem_network modem_net;
unsigned num_iodevs;
struct modem_io_t *iodevs;
};
#endif
|