msm: board-apq8064: Add USB peripheral and OTG support
Adding USB peripheral and OTG support to 8064 platform.
Also adding DIAG and ADB functions to the android gadget and
enabling DIAG+ADB compositions.
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
diff --git a/arch/arm/mach-msm/board-apq8064.c b/arch/arm/mach-msm/board-apq8064.c
index 751b70d..88724f1 100644
--- a/arch/arm/mach-msm/board-apq8064.c
+++ b/arch/arm/mach-msm/board-apq8064.c
@@ -76,6 +76,8 @@
&apq8064_device_qup_spi_gsbi5,
&apq8064_device_ssbi_pmic1,
&apq8064_device_ssbi_pmic2,
+ &msm_device_otg,
+ &msm_device_gadget_peripheral,
};
static struct msm_spi_platform_data apq8064_qup_spi_gsbi5_pdata = {
@@ -116,6 +118,8 @@
&apq8064_ssbi_pm8921_pdata;
apq8064_device_ssbi_pmic2.dev.platform_data =
&apq8064_ssbi_pm8821_pdata;
+ msm_device_otg.dev.platform_data = &msm_otg_pdata;
+ msm_device_gadget_peripheral.dev.parent = &msm_device_otg.dev;
platform_add_devices(common_devices, ARRAY_SIZE(common_devices));
}