]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
0002-usb-modconfig
authorLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 12:21:56 +0000 (14:21 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 12:21:56 +0000 (14:21 +0200)
===================================================================

arch/arm/mach-mx6/usb_dr.c

index 8fb850397c10dc9ab5acc953e319bc19d966617c..12f05ad47d13ca6c09994b26346d13839a4ef606 100644 (file)
@@ -260,7 +260,7 @@ static void __phy_lowpower_suspend(struct fsl_usb2_platform_data *pdata, bool en
 {
        if (enable) {
                low_power_enable_src |= source;
-#ifdef CONFIG_USB_OTG
+#if defined(CONFIG_USB_OTG) || defined(CONFIG_USB_OTG_MODULE)
                if (low_power_enable_src == (ENABLED_BY_HOST | ENABLED_BY_DEVICE)) {
                        pr_debug("phy lowpower enabled\n");
                        enter_phy_lowpower_suspend(pdata, enable);
@@ -304,7 +304,7 @@ static void __wakeup_irq_enable(struct fsl_usb2_platform_data *pdata, bool on, i
         */
        mutex_lock(&otg_wakeup_enable_mutex);
        if (on) {
-#ifdef CONFIG_USB_OTG
+#if defined(CONFIG_USB_OTG) || defined(CONFIG_USB_OTG_MODULE)
                wakeup_irq_enable_src |= source;
                if (wakeup_irq_enable_src == (ENABLED_BY_HOST | ENABLED_BY_DEVICE)) {
                        otg_wake_up_enable(pdata, on);
@@ -342,7 +342,7 @@ static void usbotg_wakeup_event_clear(void)
 
 /* End of Common operation for DR port */
 
-#ifdef CONFIG_USB_EHCI_ARC_OTG
+#if defined(CONFIG_USB_EHCI_ARC_OTG) || defined(CONFIG_USB_EHCI_ARC_OTG_MODULE)
 /* Beginning of host related operation for DR port */
 static void fsl_platform_otg_set_usb_phy_dis(
                struct fsl_usb2_platform_data *pdata, bool enable)
@@ -537,7 +537,7 @@ static void host_wakeup_handler(struct fsl_usb2_platform_data *pdata)
 #endif /* CONFIG_USB_EHCI_ARC_OTG */
 
 
-#ifdef CONFIG_USB_GADGET_ARC
+#if defined(CONFIG_USB_GADGET_ARC) || defined(CONFIG_USB_GADGET_ARC_MODULE)
 /* Beginning of device related operation for DR port */
 static void _device_phy_lowpower_suspend(struct fsl_usb2_platform_data *pdata, bool enable)
 {
@@ -636,7 +636,7 @@ static int  __init mx6_usb_dr_init(void)
        mx6_get_otghost_vbus_func(&mx6_set_usb_otg_vbus);
        dr_utmi_config.platform_driver_vbus = mx6_set_usb_otg_vbus;
 
-#ifdef CONFIG_USB_OTG
+#if defined(CONFIG_USB_OTG) || defined(CONFIG_USB_OTG_MODULE)
        /* wake_up_enable is useless, just for usb_register_remote_wakeup execution*/
        dr_utmi_config.wake_up_enable = _device_wakeup_enable;
        dr_utmi_config.operating_mode = FSL_USB2_DR_OTG;
@@ -645,7 +645,7 @@ static int  __init mx6_usb_dr_init(void)
        dr_wakeup_config.usb_pdata[i] = pdev[i]->dev.platform_data;
        i++;
 #endif
-#ifdef CONFIG_USB_EHCI_ARC_OTG
+#if defined(CONFIG_USB_EHCI_ARC_OTG) || defined(CONFIG_USB_EHCI_ARC_OTG_MODULE)
        dr_utmi_config.operating_mode = DR_HOST_MODE;
        dr_utmi_config.wake_up_enable = _host_wakeup_enable;
        if (usb_icbug_swfix_need()) {
@@ -665,7 +665,7 @@ static int  __init mx6_usb_dr_init(void)
        dr_wakeup_config.usb_pdata[i] = pdev[i]->dev.platform_data;
        i++;
 #endif
-#ifdef CONFIG_USB_GADGET_ARC
+#if defined(CONFIG_USB_GADGET_ARC) || defined(CONFIG_USB_GADGET_ARC_MODULE)
        dr_utmi_config.operating_mode = DR_UDC_MODE;
        dr_utmi_config.wake_up_enable = _device_wakeup_enable;
        dr_utmi_config.platform_rh_suspend = NULL;