Hi,
I am working on the USB driver (peripheral mode) for USB 2.0 on OMAP L138. The device with my USB driver is able to enumerate in full-speed mode.
/* Enable high-speed */
USB_OTG->POWER |= USB_OTG_POWER_HSEN;
But, if I set the bit 5 (HSEN) in POWER register to enable the high-speed, the enumeration will never happen.
So, my question is when should I enable the high-speed ?
Base on the code in Example 1 under section Use Cases (OMAP-L1x Processor Universal Serial Bus 2.0 Controller User's Guide), I suppose to enable high-speed before enabling interrupt. By doing that, the device will not enumerate.
rgds,
kc Wong