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

Commit a846826b authored by Jeffrey Lee's avatar Jeffrey Lee

Perform some missing PHY initialisation

Detail:
  c/tps - Added some extra PHY initialisation steps that are needed to get things working on Pandora
Admin:
  Tested on Pandora


Version 0.18. Tagged as 'MUSBDriver-0_18'
parent 510fba3f
/* (0.17)
/* (0.18)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 0.17
#define Module_MajorVersion_CMHG 0.18
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 07 Jun 2012
#define Module_Date_CMHG 24 Sep 2012
#define Module_MajorVersion "0.17"
#define Module_Version 17
#define Module_MajorVersion "0.18"
#define Module_Version 18
#define Module_MinorVersion ""
#define Module_Date "07 Jun 2012"
#define Module_Date "24 Sep 2012"
#define Module_ApplicationDate "07-Jun-12"
#define Module_ApplicationDate "24-Sep-12"
#define Module_ComponentName "MUSBDriver"
#define Module_ComponentPath "mixed/RiscOS/Sources/HWSupport/USB/Controllers/MUSBDriver"
#define Module_FullVersion "0.17"
#define Module_HelpVersion "0.17 (07 Jun 2012)"
#define Module_LibraryVersionInfo "0:17"
#define Module_FullVersion "0.18"
#define Module_HelpVersion "0.18 (24 Sep 2012)"
#define Module_LibraryVersionInfo "0:18"
......@@ -243,6 +243,9 @@ void tps_init(tps_state *state,struct musb_softc *musb)
if(!tps_writeval(state,TPS_USB_MCPC_IO_CTRL_CLR,0x38,1)) goto err;
if(!tps_writeval(state,TPS_USB_MCPC_IO_CTRL_SET,0x4,1)) goto err;
if(!tps_writeval(state,TPS_USB_OTHER_IFC_CTRL2_CLR,0xc,1)) goto err;
/* Ensure it's actually powered up */
if(!tps_writeval(state,TPS_USB_POWER_CTRL_SET,0x20,1)) goto err;
if(!tps_writeval(state,TPS_USB_FUNC_CTRL_CLR,0x1b,1)) goto err;
/* We're now done with the USB registers */
tps_disableclock(state);
......@@ -272,4 +275,6 @@ void tps_shutdown(tps_state *state)
{
/* Get rid of ticker event */
callout_stop(&(state->ticker));
/* TODO - Shutdown power */
}
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