rk2928 defconfig: set OTG_DRVVBUS mode, if usb_otg_drv=-1
authorkfx <kfx@rock-chips.com>
Mon, 5 Nov 2012 01:48:31 +0000 (09:48 +0800)
committerkfx <kfx@rock-chips.com>
Mon, 5 Nov 2012 01:48:31 +0000 (09:48 +0800)
arch/arm/mach-rk2928/board-rk2928-config.c

index 1e36aabd77ac25e81ac3d0d3e00fe83a4a58c588..e961ab41274b38adfb1c0aa1f8af07a82899ea47 100644 (file)
@@ -114,6 +114,10 @@ static inline int check_usb_param(void)
 }
 int inline otg_drv_init(int on)
 {
+        if(otg_drv == -1){
+                rk30_mux_api_set(GPIO3C1_OTG_DRVVBUS_NAME, GPIO3C_OTG_DRVVBUS);    
+                return 0;
+        }
         return port_output_init(otg_drv, on, "otg_drv");
 }
 void inline otg_drv_on(void)