]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/usb/chipidea/otg.c
usb: chipidea: usb OTG fsm initialization.
[karo-tx-linux.git] / drivers / usb / chipidea / otg.c
index c6943401a0b3e42062e0d4d5663ac35277985265..d76db51ecda7996fd482325cc7303e44247a056c 100644 (file)
@@ -22,6 +22,7 @@
 #include "ci.h"
 #include "bits.h"
 #include "otg.h"
+#include "otg_fsm.h"
 
 /**
  * hw_read_otgsc returns otgsc register bits value.
@@ -116,6 +117,9 @@ int ci_hdrc_otg_init(struct ci_hdrc *ci)
                return -ENODEV;
        }
 
+       if (ci_otg_is_fsm_mode(ci))
+               return ci_hdrc_otg_fsm_init(ci);
+
        return 0;
 }