I have an iMX6SL based system that is configured as a USB device. I would like to interrupt when the user disconnects my device from a host PC. I assume that the USB OTG PHY peripheral can do this, but I don't see how to configure it to do this.
Right now I am interrupting on a bus reset, which happens when the device is disconnected, but it could happen at other times to, I suspect.
Thanks
Hi Nathan
seems one can use bit PCI "Port Change Detect Interrupt Enable"
register USBC_n_USBINTR. For Linux it may be useful to look
at sect.34.3.3 "WakeUp Events Supported by USB"
included in i.MX_6Dual6Quad_Linux_Reference_Manual.pdf
Best regards
chip
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------