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));
}
diff --git a/arch/arm/mach-msm/devices-8064.c b/arch/arm/mach-msm/devices-8064.c
index 6b8e521..f2b52b2 100644
--- a/arch/arm/mach-msm/devices-8064.c
+++ b/arch/arm/mach-msm/devices-8064.c
@@ -44,6 +44,11 @@
#define MSM_PMIC2_SSBI_CMD_PHYS 0x00C00000
#define MSM_PMIC_SSBI_SIZE SZ_4K
+/* Address of HS USBOTG1 */
+#define MSM_HSUSB_PHYS 0x12500000
+#define MSM_HSUSB_SIZE SZ_4K
+
+
static struct resource msm_dmov_resource[] = {
{
.start = ADM_0_SCSS_0_IRQ,