GitLab has been upgraded to 13.3.6. If you encounter any issues mail code@riscosopen.org

Commit c7e75fa8 authored by Jeffrey Lee's avatar Jeffrey Lee

Force controller to run in host mode

Detail:
  dwc/driver/c/dwc_otg_cil - Set the force_host_mode bit to make the controller ignore the ID pin for devices with OTG ports (e.g. Pi Zero).
  This matches a recent change to the Linux version of the driver (https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=127003&start=50#p850028) and allows a plethora of non-OTG cables to be successfully used with the Pi Zero.
Admin:
  Tested on Raspberry Pi B, Pi Zero
  Changes supplied by Colin Granville/Chris Evans


Version 0.24. Tagged as 'DWCDriver-0_24'
parent acd8b243
/* (0.23)
/* (0.24)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.23
#define Module_MajorVersion_CMHG 0.24
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 18 Nov 2015
#define Module_Date_CMHG 11 Dec 2015
#define Module_MajorVersion "0.23"
#define Module_Version 23
#define Module_MajorVersion "0.24"
#define Module_Version 24
#define Module_MinorVersion ""
#define Module_Date "18 Nov 2015"
#define Module_Date "11 Dec 2015"
#define Module_ApplicationDate "18-Nov-15"
#define Module_ApplicationDate "11-Dec-15"
#define Module_ComponentName "DWCDriver"
#define Module_ComponentPath "mixed/RiscOS/Sources/HWSupport/USB/Controllers/DWCDriver"
#define Module_FullVersion "0.23"
#define Module_HelpVersion "0.23 (18 Nov 2015)"
#define Module_LibraryVersionInfo "0:23"
#define Module_FullVersion "0.24"
#define Module_HelpVersion "0.24 (11 Dec 2015)"
#define Module_LibraryVersionInfo "0:24"
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment