Skip to content

Commit

Permalink
dwc_otg: Force host mode to fix incorrect compute module boards
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Sep 17, 2015
1 parent 676d8d9 commit 59e76bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/host/dwc_otg/dwc_otg_cil.c
Expand Up @@ -192,7 +192,7 @@ dwc_otg_core_if_t *dwc_otg_cil_init(const uint32_t * reg_base_addr)
core_if->hptxfsiz.d32 =
DWC_READ_REG32(&core_if->core_global_regs->hptxfsiz);
gusbcfg.d32 = DWC_READ_REG32(&core_if->core_global_regs->gusbcfg);
gusbcfg.b.force_host_mode = 0;
gusbcfg.b.force_host_mode = 1;
DWC_WRITE_REG32(&core_if->core_global_regs->gusbcfg, gusbcfg.d32);
dwc_mdelay(100);
}
Expand Down

0 comments on commit 59e76bb

Please sign in to comment.