diff options
Diffstat (limited to 'arch/arm/mach-msm/board-qsd8x50.c')
-rw-r--r-- | arch/arm/mach-msm/board-qsd8x50.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-msm/board-qsd8x50.c b/arch/arm/mach-msm/board-qsd8x50.c index ed2af4ad97ed..2e8391307f55 100644 --- a/arch/arm/mach-msm/board-qsd8x50.c +++ b/arch/arm/mach-msm/board-qsd8x50.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <linux/gpio.h> | 20 | #include <linux/gpio.h> |
21 | #include <linux/platform_device.h> | 21 | #include <linux/platform_device.h> |
22 | #include <linux/delay.h> | 22 | #include <linux/delay.h> |
23 | #include <linux/usb/msm_hsusb.h> | ||
23 | 24 | ||
24 | #include <asm/mach-types.h> | 25 | #include <asm/mach-types.h> |
25 | #include <asm/mach/arch.h> | 26 | #include <asm/mach/arch.h> |
@@ -74,9 +75,24 @@ static int __init msm_init_smc91x(void) | |||
74 | } | 75 | } |
75 | module_init(msm_init_smc91x); | 76 | module_init(msm_init_smc91x); |
76 | 77 | ||
78 | static int hsusb_phy_init_seq[] = { | ||
79 | 0x08, 0x31, /* Increase HS Driver Amplitude */ | ||
80 | 0x20, 0x32, /* Enable and set Pre-Emphasis Depth to 10% */ | ||
81 | -1 | ||
82 | }; | ||
83 | |||
84 | static struct msm_otg_platform_data msm_otg_pdata = { | ||
85 | .phy_init_seq = hsusb_phy_init_seq, | ||
86 | .mode = USB_PERIPHERAL, | ||
87 | .otg_control = OTG_PHY_CONTROL, | ||
88 | }; | ||
89 | |||
77 | static struct platform_device *devices[] __initdata = { | 90 | static struct platform_device *devices[] __initdata = { |
78 | &msm_device_uart3, | 91 | &msm_device_uart3, |
79 | &msm_device_smd, | 92 | &msm_device_smd, |
93 | &msm_device_otg, | ||
94 | &msm_device_hsusb, | ||
95 | &msm_device_hsusb_host, | ||
80 | }; | 96 | }; |
81 | 97 | ||
82 | static void __init qsd8x50_map_io(void) | 98 | static void __init qsd8x50_map_io(void) |
@@ -93,6 +109,9 @@ static void __init qsd8x50_init_irq(void) | |||
93 | 109 | ||
94 | static void __init qsd8x50_init(void) | 110 | static void __init qsd8x50_init(void) |
95 | { | 111 | { |
112 | msm_device_otg.dev.platform_data = &msm_otg_pdata; | ||
113 | msm_device_hsusb.dev.parent = &msm_device_otg.dev; | ||
114 | msm_device_hsusb_host.dev.parent = &msm_device_otg.dev; | ||
96 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 115 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
97 | } | 116 | } |
98 | 117 | ||