diff options
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/msm_serial_hs.h | 49 | ||||
| -rw-r--r-- | include/linux/platform_data/tegra_usb.h | 31 | ||||
| -rw-r--r-- | include/linux/platform_data/uio_pruss.h | 25 |
3 files changed, 105 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 | ||
diff --git a/include/linux/platform_data/tegra_usb.h b/include/linux/platform_data/tegra_usb.h new file mode 100644 index 000000000000..6bca5b569acb --- /dev/null +++ b/include/linux/platform_data/tegra_usb.h | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2010 Google, Inc. | ||
| 3 | * | ||
| 4 | * This software is licensed under the terms of the GNU General Public | ||
| 5 | * License version 2, as published by the Free Software Foundation, and | ||
| 6 | * may be copied, distributed, and modified under those terms. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope that it will be useful, | ||
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 11 | * GNU General Public License for more details. | ||
| 12 | * | ||
| 13 | */ | ||
| 14 | |||
| 15 | #ifndef _TEGRA_USB_H_ | ||
| 16 | #define _TEGRA_USB_H_ | ||
| 17 | |||
| 18 | enum tegra_usb_operating_modes { | ||
| 19 | TEGRA_USB_DEVICE, | ||
| 20 | TEGRA_USB_HOST, | ||
| 21 | TEGRA_USB_OTG, | ||
| 22 | }; | ||
| 23 | |||
| 24 | struct tegra_ehci_platform_data { | ||
| 25 | enum tegra_usb_operating_modes operating_mode; | ||
| 26 | /* power down the phy on bus suspend */ | ||
| 27 | int power_down_on_bus_suspend; | ||
| 28 | void *phy_config; | ||
| 29 | }; | ||
| 30 | |||
| 31 | #endif /* _TEGRA_USB_H_ */ | ||
diff --git a/include/linux/platform_data/uio_pruss.h b/include/linux/platform_data/uio_pruss.h new file mode 100644 index 000000000000..f39140aabc6f --- /dev/null +++ b/include/linux/platform_data/uio_pruss.h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | /* | ||
| 2 | * include/linux/platform_data/uio_pruss.h | ||
| 3 | * | ||
| 4 | * Platform data for uio_pruss driver | ||
| 5 | * | ||
| 6 | * Copyright (C) 2010-11 Texas Instruments Incorporated - http://www.ti.com/ | ||
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or | ||
| 9 | * modify it under the terms of the GNU General Public License as | ||
| 10 | * published by the Free Software Foundation version 2. | ||
| 11 | * | ||
| 12 | * This program is distributed "as is" WITHOUT ANY WARRANTY of any | ||
| 13 | * kind, whether express or implied; without even the implied warranty | ||
| 14 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | * GNU General Public License for more details. | ||
| 16 | */ | ||
| 17 | |||
| 18 | #ifndef _UIO_PRUSS_H_ | ||
| 19 | #define _UIO_PRUSS_H_ | ||
| 20 | |||
| 21 | /* To configure the PRUSS INTC base offset for UIO driver */ | ||
| 22 | struct uio_pruss_pdata { | ||
| 23 | u32 pintc_base; | ||
| 24 | }; | ||
| 25 | #endif /* _UIO_PRUSS_H_ */ | ||
