This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/AM5726: USB1 clock configuration C lines

Part Number: AM5726


Tool/software: TI-RTOS

Hi Everybody , 

please  where can I can find  in the PDK  or TIrtos  the proper lines  in C doing the clock conifguration for USB1  ? 

I see  many files  and I am  a little  lost  . 

thank you 

regards

Carlo

  • Carlo,

    Can you please look at the function usbClockcfg in the USB driver code :
    pdk_am57xx_1_0_xx\packages\ti\drv\usb\soc\am572x

    It is common function that can be used to configure USB clock for port 0 and port 1.

    Regards,
    Rahul
  • Hi Rahul ,
    please do I need to call this functions in pdk_am57xx_1_0_10\packages\ti\board\src\<board_name>_AM572x\ <board_name>_AM572x_clock.c
    in function Board_STATUS Board_moduleClockInit()? or USB driver sets up the clock by itself when being initialized?
    thank you very mcuh
    regards
    Carlo
  • The USB driver relies on the baseline board library setup and then configures its clocks during initialization . The driver does the required configuration for clocks during initialization so there is no need to separately call into that function. There may be special cases like USB3.0 where certain clocks are not set in the board library and the driver modifies/configures it.

    Refer to the init functions where this API is called for Host mode and device mode setup where the clock config is called.
    USB_Host_Init (usb_xhci_hcd.c)
    setupDwcDevMsc (usb_dwc.c)
    setupMusbDevMsc (usb_musb.c)

    Regards,
    Rahul