diff options
| author | H. Peter Anvin <hpa@linux.intel.com> | 2012-01-19 15:56:50 -0500 |
|---|---|---|
| committer | H. Peter Anvin <hpa@linux.intel.com> | 2012-01-19 15:56:50 -0500 |
| commit | 282f445a779ed76fca9884fe377bf56a3088b208 (patch) | |
| tree | d9abcf526baee0100672851e0a8894c19e762a39 /include/linux/platform_data | |
| parent | 68f30fbee19cc67849b9fa8e153ede70758afe81 (diff) | |
| parent | 90a4c0f51e8e44111a926be6f4c87af3938a79c3 (diff) | |
Merge remote-tracking branch 'linus/master' into x86/urgent
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/macb.h | 17 | ||||
| -rw-r--r-- | include/linux/platform_data/mv_usb.h | 18 | ||||
| -rw-r--r-- | include/linux/platform_data/s3c-hsudc.h | 34 |
3 files changed, 67 insertions, 2 deletions
diff --git a/include/linux/platform_data/macb.h b/include/linux/platform_data/macb.h new file mode 100644 index 000000000000..b081c7245ec8 --- /dev/null +++ b/include/linux/platform_data/macb.h | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2004-2006 Atmel Corporation | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License version 2 as | ||
| 6 | * published by the Free Software Foundation. | ||
| 7 | */ | ||
| 8 | #ifndef __MACB_PDATA_H__ | ||
| 9 | #define __MACB_PDATA_H__ | ||
| 10 | |||
| 11 | struct macb_platform_data { | ||
| 12 | u32 phy_mask; | ||
| 13 | int phy_irq_pin; /* PHY IRQ */ | ||
| 14 | u8 is_rmii; /* using RMII interface? */ | ||
| 15 | }; | ||
| 16 | |||
| 17 | #endif /* __MACB_PDATA_H__ */ | ||
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 */ | ||
