Dear Champs,
My customer is developing USB driver by referring our wrapper code and keystone2 UG in below.
C:\ti\pdk_am437x_1_0_16\packages\ti\drv\usb\soc\am437x\usb_wrapper.c
and http://www.ti.com/lit/ug/spruhj7a/spruhj7a.pdf
I recommended it by referring below e2e.
But, there is an difference in the offsets defined in the hw_usbotgss_c2_wrapper.h(C:\ti\pdk_am437x_1_0_16\packages\ti\drv\usb\soc\am437x\hw_usbotgss_c2_wrapper.h)
#define USBOTGSS_C2_WRAPPER_IRQSTATUS_RAW_MAIN_0(n) (0x20U + ((n-1) * 0x14U))
#define USBOTGSS_C2_WRAPPER_IRQENABLE_SET_MAIN_0(n) (0x28U + ((n-1) * 0x14U))
#define USBOTGSS_C2_WRAPPER_IRQENABLE_CLR_MAIN_0(n) (0x2cU + ((n-1) * 0x14U))
#define USBOTGSS_C2_WRAPPER_IRQSTATUS_MAIN_0(n) (0x24U + ((n-1) * 0x14U))
but, the offset defined in the document Keystone2 USB UG(http://www.ti.com/lit/ug/spruhj7a/spruhj7a.pdf) and CSL USB3 file(C:\ti\pdk_am437x_1_0_16\packages\ti\csl\src\ip\usb\V0\cslr_usb3ss.h)
In Keystone2 USB UG,
Could you please let me know which offset should be used for USB IRQ(n) among 0x10 or 0x14 for AM4372 USB SS?
Thanks and Best Regards,
SI.