diff options
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/dwc3-omap.h | 47 | ||||
| -rw-r--r-- | include/linux/platform_data/mv_usb.h | 50 |
2 files changed, 97 insertions, 0 deletions
diff --git a/include/linux/platform_data/dwc3-omap.h b/include/linux/platform_data/dwc3-omap.h new file mode 100644 index 000000000000..ada401244e0b --- /dev/null +++ b/include/linux/platform_data/dwc3-omap.h | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | /** | ||
| 2 | * dwc3-omap.h - OMAP Specific Glue layer, header. | ||
| 3 | * | ||
| 4 | * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com | ||
| 5 | * All rights reserved. | ||
| 6 | * | ||
| 7 | * Author: Felipe Balbi <balbi@ti.com> | ||
| 8 | * | ||
| 9 | * Redistribution and use in source and binary forms, with or without | ||
| 10 | * modification, are permitted provided that the following conditions | ||
| 11 | * are met: | ||
| 12 | * 1. Redistributions of source code must retain the above copyright | ||
| 13 | * notice, this list of conditions, and the following disclaimer, | ||
| 14 | * without modification. | ||
| 15 | * 2. Redistributions in binary form must reproduce the above copyright | ||
| 16 | * notice, this list of conditions and the following disclaimer in the | ||
| 17 | * documentation and/or other materials provided with the distribution. | ||
| 18 | * 3. The names of the above-listed copyright holders may not be used | ||
| 19 | * to endorse or promote products derived from this software without | ||
| 20 | * specific prior written permission. | ||
| 21 | * | ||
| 22 | * ALTERNATIVELY, this software may be distributed under the terms of the | ||
| 23 | * GNU General Public License ("GPL") version 2, as published by the Free | ||
| 24 | * Software Foundation. | ||
| 25 | * | ||
| 26 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS | ||
| 27 | * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
| 28 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 29 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR | ||
| 30 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
| 31 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
| 32 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
| 33 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
| 34 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
| 35 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
| 36 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 37 | */ | ||
| 38 | |||
| 39 | enum dwc3_omap_utmi_mode { | ||
| 40 | DWC3_OMAP_UTMI_MODE_UNKNOWN = 0, | ||
| 41 | DWC3_OMAP_UTMI_MODE_HW, | ||
| 42 | DWC3_OMAP_UTMI_MODE_SW, | ||
| 43 | }; | ||
| 44 | |||
| 45 | struct dwc3_omap_data { | ||
| 46 | enum dwc3_omap_utmi_mode utmi_mode; | ||
| 47 | }; | ||
diff --git a/include/linux/platform_data/mv_usb.h b/include/linux/platform_data/mv_usb.h new file mode 100644 index 000000000000..e9d9149ddf38 --- /dev/null +++ b/include/linux/platform_data/mv_usb.h | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2011 Marvell International Ltd. All rights reserved. | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify it | ||
| 5 | * under the terms of the GNU General Public License as published by the | ||
| 6 | * Free Software Foundation; either version 2 of the License, or (at your | ||
| 7 | * option) any later version. | ||
| 8 | */ | ||
| 9 | |||
| 10 | #ifndef __MV_PLATFORM_USB_H | ||
| 11 | #define __MV_PLATFORM_USB_H | ||
| 12 | |||
| 13 | enum pxa_ehci_type { | ||
| 14 | EHCI_UNDEFINED = 0, | ||
| 15 | PXA_U2OEHCI, /* pxa 168, 9xx */ | ||
| 16 | PXA_SPH, /* pxa 168, 9xx SPH */ | ||
| 17 | MMP3_HSIC, /* mmp3 hsic */ | ||
| 18 | MMP3_FSIC, /* mmp3 fsic */ | ||
| 19 | }; | ||
| 20 | |||
| 21 | enum { | ||
| 22 | MV_USB_MODE_OTG, | ||
| 23 | MV_USB_MODE_HOST, | ||
| 24 | }; | ||
| 25 | |||
| 26 | enum { | ||
| 27 | VBUS_LOW = 0, | ||
| 28 | VBUS_HIGH = 1 << 0, | ||
| 29 | }; | ||
| 30 | |||
| 31 | struct mv_usb_addon_irq { | ||
| 32 | unsigned int irq; | ||
| 33 | int (*poll)(void); | ||
| 34 | }; | ||
| 35 | |||
| 36 | struct mv_usb_platform_data { | ||
| 37 | unsigned int clknum; | ||
| 38 | char **clkname; | ||
| 39 | struct mv_usb_addon_irq *id; /* Only valid for OTG. ID pin change*/ | ||
| 40 | struct mv_usb_addon_irq *vbus; /* valid for OTG/UDC. VBUS change*/ | ||
| 41 | |||
| 42 | /* only valid for HCD. OTG or Host only*/ | ||
| 43 | unsigned int mode; | ||
| 44 | |||
| 45 | int (*phy_init)(unsigned int regbase); | ||
| 46 | void (*phy_deinit)(unsigned int regbase); | ||
| 47 | int (*set_vbus)(unsigned int vbus); | ||
| 48 | }; | ||
| 49 | |||
| 50 | #endif | ||
