diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-09 15:09:47 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-09 15:09:47 -0500 |
| commit | 55b81e6f2795484ea8edf5805c95c007cacfa736 (patch) | |
| tree | c3724975107857fcc03b5dd649c462e4f72397be /include/linux/platform_data | |
| parent | 5983faf942f260023e547f3c5f38c1033c35cc9b (diff) | |
| parent | 08e87d0d773dc9ca5faf4c3306e238ed0ea129b0 (diff) | |
Merge branch 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
* 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (232 commits)
USB: Add USB-ID for Multiplex RC serial adapter to cp210x.c
xhci: Clean up 32-bit build warnings.
USB: update documentation for usbmon
usb: usb-storage doesn't support dynamic id currently, the patch disables the feature to fix an oops
drivers/usb/class/cdc-acm.c: clear dangling pointer
drivers/usb/dwc3/dwc3-pci.c: introduce missing kfree
drivers/usb/host/isp1760-if.c: introduce missing kfree
usb: option: add ZD Incorporated HSPA modem
usb: ch9: fix up MaxStreams helper
USB: usb-skeleton.c: cleanup open_count
USB: usb-skeleton.c: fix open/disconnect race
xhci: Properly handle COMP_2ND_BW_ERR
USB: remove dead code from suspend/resume path
USB: add quirk for another camera
drivers: usb: wusbcore: Fix dependency for USB_WUSB
xhci: Better debugging for critical host errors.
xhci: Be less verbose during URB cancellation.
xhci: Remove debugging about ring structure allocation.
xhci: Remove debugging about toggling cycle bits.
xhci: Remove debugging for individual transfers.
...
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/mv_usb.h | 18 | ||||
| -rw-r--r-- | include/linux/platform_data/s3c-hsudc.h | 34 |
2 files changed, 50 insertions, 2 deletions
diff --git a/include/linux/platform_data/mv_usb.h b/include/linux/platform_data/mv_usb.h index e9d9149ddf38..d94804aca764 100644 --- a/include/linux/platform_data/mv_usb.h +++ b/include/linux/platform_data/mv_usb.h | |||
| @@ -42,9 +42,23 @@ struct mv_usb_platform_data { | |||
| 42 | /* only valid for HCD. OTG or Host only*/ | 42 | /* only valid for HCD. OTG or Host only*/ |
| 43 | unsigned int mode; | 43 | unsigned int mode; |
| 44 | 44 | ||
| 45 | int (*phy_init)(unsigned int regbase); | 45 | /* This flag is used for that needs id pin checked by otg */ |
| 46 | void (*phy_deinit)(unsigned int regbase); | 46 | unsigned int disable_otg_clock_gating:1; |
| 47 | /* Force a_bus_req to be asserted */ | ||
| 48 | unsigned int otg_force_a_bus_req:1; | ||
| 49 | |||
| 50 | int (*phy_init)(void __iomem *regbase); | ||
| 51 | void (*phy_deinit)(void __iomem *regbase); | ||
| 47 | int (*set_vbus)(unsigned int vbus); | 52 | int (*set_vbus)(unsigned int vbus); |
| 53 | int (*private_init)(void __iomem *opregs, void __iomem *phyregs); | ||
| 48 | }; | 54 | }; |
| 49 | 55 | ||
| 56 | #ifndef CONFIG_HAVE_CLK | ||
| 57 | /* Dummy stub for clk framework */ | ||
| 58 | #define clk_get(dev, id) NULL | ||
| 59 | #define clk_put(clock) do {} while (0) | ||
| 60 | #define clk_enable(clock) do {} while (0) | ||
| 61 | #define clk_disable(clock) do {} while (0) | ||
| 62 | #endif | ||
| 63 | |||
| 50 | #endif | 64 | #endif |
diff --git a/include/linux/platform_data/s3c-hsudc.h b/include/linux/platform_data/s3c-hsudc.h new file mode 100644 index 000000000000..6fa109339bf9 --- /dev/null +++ b/include/linux/platform_data/s3c-hsudc.h | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* | ||
| 2 | * S3C24XX USB 2.0 High-speed USB controller gadget driver | ||
| 3 | * | ||
| 4 | * Copyright (c) 2010 Samsung Electronics Co., Ltd. | ||
| 5 | * http://www.samsung.com/ | ||
| 6 | * | ||
| 7 | * The S3C24XX USB 2.0 high-speed USB controller supports upto 9 endpoints. | ||
| 8 | * Each endpoint can be configured as either in or out endpoint. Endpoints | ||
| 9 | * can be configured for Bulk or Interrupt transfer mode. | ||
| 10 | * | ||
| 11 | * This program is free software; you can redistribute it and/or modify | ||
| 12 | * it under the terms of the GNU General Public License version 2 as | ||
| 13 | * published by the Free Software Foundation. | ||
| 14 | */ | ||
| 15 | |||
| 16 | #ifndef __LINUX_USB_S3C_HSUDC_H | ||
| 17 | #define __LINUX_USB_S3C_HSUDC_H | ||
| 18 | |||
| 19 | /** | ||
| 20 | * s3c24xx_hsudc_platdata - Platform data for USB High-Speed gadget controller. | ||
| 21 | * @epnum: Number of endpoints to be instantiated by the controller driver. | ||
| 22 | * @gpio_init: Platform specific USB related GPIO initialization. | ||
| 23 | * @gpio_uninit: Platform specific USB releted GPIO uninitialzation. | ||
| 24 | * | ||
| 25 | * Representation of platform data for the S3C24XX USB 2.0 High Speed gadget | ||
| 26 | * controllers. | ||
| 27 | */ | ||
| 28 | struct s3c24xx_hsudc_platdata { | ||
| 29 | unsigned int epnum; | ||
| 30 | void (*gpio_init)(void); | ||
| 31 | void (*gpio_uninit)(void); | ||
| 32 | }; | ||
| 33 | |||
| 34 | #endif /* __LINUX_USB_S3C_HSUDC_H */ | ||
