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.

about omapl138 usb otg register problem

Other Parts Discussed in Thread: OMAPL138, OMAP-L138

When   I   debug  usb_host_msc  testcase, I  found   some register  address  can't  found  in   document ,such  like  follow  address.

The usb base address is  0x1e00400 , the   offset  is  0x400,  but  I  can't  find  the  register  is  address : 0x1e00800 ;  Can  you tell me this  is  why or  give me  the  complete  doucument  contain  follow  address  register 。

#define USB_O_EPC               0x00000400  // USB External Power Control
#define USB_O_EPCRIS            0x00000404  // USB External Power Control Raw
                                            // Interrupt Status
#define USB_O_EPCIM             0x00000408  // USB External Power Control
                                            // Interrupt Mask
#define USB_O_EPCISC            0x0000040C  // USB External Power Control
                                            // Interrupt Status and Clear
#define USB_O_DRRIS             0x00000410  // USB Device RESUME Raw Interrupt
                                            // Status
#define USB_O_DRIM              0x00000414  // USB Device RESUME Interrupt Mask
#define USB_O_DRISC             0x00000418  // USB Device RESUME Interrupt
                                            // Status and Clear
#define USB_O_GPCS              0x0000041C  // USB General-Purpose Control and
                                            // Status
#define USB_O_VDC               0x00000430  // USB VBUS Droop Control
#define USB_O_VDCRIS            0x00000434  // USB VBUS Droop Control Raw
                                            // Interrupt Status
#define USB_O_VDCIM             0x00000438  // USB VBUS Droop Control Interrupt
                                            // Mask
#define USB_O_VDCISC            0x0000043C  // USB VBUS Droop Control Interrupt
                                            // Status and Clear
#define USB_O_IDVRIS            0x00000444  // USB ID Valid Detect Raw
                                            // Interrupt Status
#define USB_O_IDVIM             0x00000448  // USB ID Valid Detect Interrupt
                                            // Mask
#define USB_O_IDVISC            0x0000044C  // USB ID Valid Detect Interrupt
                                            // Status and Clear
#define USB_O_DMASEL            0x00000450  // USB DMA Select

  • Hi,

    We are working on it and will update you shortly.

    Thanks & regards,
    Sivaraj K
  • Hi Chao,

    For USB OTG registers of OMAPL138, we have to refer the "Table 35-30. Universal Serial Bus OTG (USB0) Registers" given in the "OMAP-L138 DSP+ARM Processor Technical Reference Manual", SPRUH77A.

    http://www.ti.com.cn/cn/lit/ug/spruh77b/spruh77b.pdf

    This is the complete document which encloses all the registers with its memory mapped address.

    As per the soc_OMAPL138.h, the base addresses of USB are shown below.

    /** \brief Base address of MUSB memmory mapped Registers */

    #define SOC_USB_0_BASE (0x01E00400)

    /** \brief Base address of OTG memmory mapped Registers */

    #define SOC_USB_0_OTG_BASE (0x01E00000)

    And also, when you debug the USB_host_msc.c, let me know the function name in which you come across the register whose address needs to be known. I will be able to clarify you more specific.