How do I interrupt on USB disconnect on iMX6SL (in Device mode)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do I interrupt on USB disconnect on iMX6SL (in Device mode)

606 Views
nathanpalmer
Contributor IV

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

Labels (2)
Tags (3)
0 Kudos
1 Reply

415 Views
igorpadykov
NXP Employee
NXP Employee

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

L3.0.35_4.1.0_LINUX_DOCS

Best regards

chip

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos