/**************************************************************************** * * Driver for the IFX spi modem. * * Copyright (C) 2009, 2010 Intel Corp * Jim Stanley * * * 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 Street, Fifth Floor, Boston, MA 02110-1301, * USA * * * *****************************************************************************/ #ifndef _IFX6X60_H #define _IFX6X60_H #define DRVNAME "ifx6x60" #define TTYNAME "ttyIFX" #define IFX_SPI_MAX_MINORS 1 #define IFX_SPI_TRANSFER_SIZE 2048 #define IFX_SPI_FIFO_SIZE 4096 #define IFX_SPI_HEADER_OVERHEAD 4 #define IFX_RESET_TIMEOUT msecs_to_jiffies(50) /* device flags bitfield definitions */ #define IFX_SPI_STATE_PRESENT 0 #define IFX_SPI_STATE_IO_IN_PROGRESS 1 #define IFX_SPI_STATE_IO_READY 2 #define IFX_SPI_STATE_TIMER_PENDING 3 #define IFX_SPI_STATE_IO_AVAILABLE 4 /* flow control bitfields */ #define IFX_SPI_DCD 0 #define IFX_SPI_CTS 1 #define IFX_SPI_DSR 2 #define IFX_SPI_RI 3 #define IFX_SPI_DTR 4 #define IFX_SPI_RTS 5 #define IFX_SPI_TX_FC 6 #define IFX_SPI_RX_FC 7 #define IFX_SPI_UPDATE 8 #define IFX_SPI_PAYLOAD_SIZE (IFX_SPI_TRANSFER_SIZE - \ IFX_SPI_HEADER_OVERHEAD) #define IFX_SPI_IRQ_TYPE DETECT_EDGE_RISING #define IFX_SPI_GPIO_TARGET 0 #define IFX_SPI_GPIO0 0x105 #define IFX_SPI_STATUS_TIMEOUT (2000*HZ) /* values for bits in power status byte */ #define IFX_SPI_POWER_DATA_PENDING 1 #define IFX_SPI_POWER_SRDY 2 struct ifx_spi_device { /* Our SPI device */ struct spi_device *spi_dev; /* Port specific data */ struct kfifo tx_fifo; spinlock_t fifo_lock; unsigned long signal_state; /* TTY Layer logic */ struct tty_port tty_port; struct device *tty_dev; int minor; /* Low level I/O work */ struct tasklet_struct io_work_tasklet; unsigned long flags; dma_addr_t rx_dma; dma_addr_t tx_dma; int modem; /* Modem type */ int use_dma; /* provide dma-able addrs in SPI msg */ long max_hz; /* max SPI frequency */ spinlock_t write_lock; int write_pending; spinlock_t power_lock; unsigned char power_status; unsigned char *rx_buffer; unsigned char *tx_buffer; dma_addr_t rx_bus; dma_addr_t tx_bus; unsigned char spi_more; unsigned char spi_slave_cts; struct timer_list spi_timer; struct spi_message spi_msg; struct spi_transfer spi_xfer; struct { /* gpio lines */ unsigned short srdy; /* slave-ready gpio */ unsigned short mrdy; /* master-ready gpio */ unsigned short reset; /* modem-reset gpio */ unsigned short po; /* modem-on gpio */ unsigned short reset_out; /* modem-in-reset gpio */ /* state/stats */ int unack_srdy_int_nb; } gpio; /* modem reset */ unsigned long mdm_reset_state; #define MR_START 0 #define MR_INPROGRESS 1 #define MR_COMPLETE 2 wait_queue_head_t mdm_reset_wait; void (*swap_buf)(unsigned char *buf, int len, void *end); }; #endif /* _IFX6X60_H */ tr/smd.c?h=nds-private-remove&id=f83e6862047e1e371bdc5d512dd6cabe8a3965b8&showmsg=1'>Expand)AuthorFilesLines 'nds-private-remove'/>
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-08 11:42:04 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-08 11:42:04 -0800
commit83280e90ef001f77a64e2ce59c25ab66e47ab1f0 (patch)
treeec0a5842e2fbc0f4abaff55299acac397b8da5c3 /include/dt-bindings/regulator
parentcc250e267bd56c531b0bee455fc724d50af83fac (diff)
parent0a8fd1346254974c3a852338508e4a4cddbb35f1 (diff)
Merge tag 'usb-4.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
Pull USB fixes from Greg KH: "Here are a bunch of USB fixes for 4.10-rc3. Yeah, it's a lot, an artifact of the holiday break I think. Lots of gadget and the usual XHCI fixups for reported issues (one day that driver will calm down...) Also included are a bunch of usb-serial driver fixes, and for good measure, a number of much-reported MUSB driver issues have finally been resolved. All of these have been in linux-next with no reported issues" * tag 'usb-4.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (72 commits) USB: fix problems with duplicate endpoint addresses usb: ohci-at91: use descriptor-based gpio APIs correctly usb: storage: unusual_uas: Add JMicron JMS56x to unusual device usb: hub: Move hub_port_disable() to fix warning if PM is disabled usb: musb: blackfin: add bfin_fifo_offset in bfin_ops usb: musb: fix compilation warning on unused function usb: musb: Fix trying to free already-free IRQ 4 usb: musb: dsps: implement clear_ep_rxintr() callback usb: musb: core: add clear_ep_rxintr() to musb_platform_ops USB: serial: ti_usb_3410_5052: fix NULL-deref at open USB: serial: spcp8x5: fix NULL-deref at open USB: serial: quatech2: fix sleep-while-atomic in close USB: serial: pl2303: fix NULL-deref at open USB: serial: oti6858: fix NULL-deref at open USB: serial: omninet: fix NULL-derefs at open and disconnect USB: serial: mos7840: fix misleading interrupt-URB comment USB: serial: mos7840: remove unused write URB USB: serial: mos7840: fix NULL-deref at open USB: serial: mos7720: remove obsolete port initialisation USB: serial: mos7720: fix parallel probe ...
Diffstat (limited to 'include/dt-bindings/regulator')