diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 18:11:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-16 18:11:04 -0400 |
commit | e6bee325e49f17c65c1fd66e9e8b348c85788341 (patch) | |
tree | bcc9e5d8e82efa9009edd481a837cc3626360091 /include/linux/platform_data | |
parent | a5e6b135bdff649e4330f98e2e80dbb1984f7e77 (diff) | |
parent | 6ae705b23be8da52d3163be9d81e9b767876aaf9 (diff) |
Merge branch 'tty-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6
* 'tty-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty-2.6: (76 commits)
pch_uart: reference clock on CM-iTC
pch_phub: add new device ML7213
n_gsm: fix UIH control byte : P bit should be 0
n_gsm: add a documentation
serial: msm_serial_hs: Add MSM high speed UART driver
tty_audit: fix tty_audit_add_data live lock on audit disabled
tty: move cd1865.h to drivers/staging/tty/
Staging: tty: fix build with epca.c driver
pcmcia: synclink_cs: fix prototype for mgslpc_ioctl()
Staging: generic_serial: fix double locking bug
nozomi: don't use flush_scheduled_work()
tty/serial: Relax the device_type restriction from of_serial
MAINTAINERS: Update HVC file patterns
tty: phase out of ioctl file pointer for tty3270 as well
tty: forgot to remove ipwireless from drivers/char/pcmcia/Makefile
pch_uart: Fix DMA channel miss-setting issue.
pch_uart: fix exclusive access issue
pch_uart: fix auto flow control miss-setting issue
pch_uart: fix uart clock setting issue
pch_uart : Use dev_xxx not pr_xxx
...
Fix up trivial conflicts in drivers/misc/pch_phub.c (same patch applied
twice, then changes to the same area in one branch)
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r-- | include/linux/platform_data/msm_serial_hs.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/include/linux/platform_data/msm_serial_hs.h b/include/linux/platform_data/msm_serial_hs.h new file mode 100644 index 000000000000..98a2046f8b31 --- /dev/null +++ b/include/linux/platform_data/msm_serial_hs.h | |||
@@ -0,0 +1,49 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2008 Google, Inc. | ||
3 | * Author: Nick Pelly <npelly@google.com> | ||
4 | * | ||
5 | * This software is licensed under the terms of the GNU General Public | ||
6 | * License version 2, as published by the Free Software Foundation, and | ||
7 | * may be copied, distributed, and modified under those terms. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | * GNU General Public License for more details. | ||
13 | */ | ||
14 | |||
15 | #ifndef __ASM_ARCH_MSM_SERIAL_HS_H | ||
16 | #define __ASM_ARCH_MSM_SERIAL_HS_H | ||
17 | |||
18 | #include <linux/serial_core.h> | ||
19 | |||
20 | /* API to request the uart clock off or on for low power management | ||
21 | * Clients should call request_clock_off() when no uart data is expected, | ||
22 | * and must call request_clock_on() before any further uart data can be | ||
23 | * received. */ | ||
24 | extern void msm_hs_request_clock_off(struct uart_port *uport); | ||
25 | extern void msm_hs_request_clock_on(struct uart_port *uport); | ||
26 | |||
27 | /** | ||
28 | * struct msm_serial_hs_platform_data | ||
29 | * @rx_wakeup_irq: Rx activity irq | ||
30 | * @rx_to_inject: extra character to be inserted to Rx tty on wakeup | ||
31 | * @inject_rx: 1 = insert rx_to_inject. 0 = do not insert extra character | ||
32 | * @exit_lpm_cb: function called before every Tx transaction | ||
33 | * | ||
34 | * This is an optional structure required for UART Rx GPIO IRQ based | ||
35 | * wakeup from low power state. UART wakeup can be triggered by RX activity | ||
36 | * (using a wakeup GPIO on the UART RX pin). This should only be used if | ||
37 | * there is not a wakeup GPIO on the UART CTS, and the first RX byte is | ||
38 | * known (eg., with the Bluetooth Texas Instruments HCILL protocol), | ||
39 | * since the first RX byte will always be lost. RTS will be asserted even | ||
40 | * while the UART is clocked off in this mode of operation. | ||
41 | */ | ||
42 | struct msm_serial_hs_platform_data { | ||
43 | int rx_wakeup_irq; | ||
44 | unsigned char inject_rx_on_wakeup; | ||
45 | char rx_to_inject; | ||
46 | void (*exit_lpm_cb)(struct uart_port *); | ||
47 | }; | ||
48 | |||
49 | #endif | ||