| /* |
| * 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, |
| IPC_RAMDUMP, |
| }; |
| |
| 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_cp_off; |
| 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_slave_wakeup; |
| unsigned gpio_host_wakeup; |
| unsigned gpio_host_active; |
| int irq_host_wakeup; |
| #endif |
| /* 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 |