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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

804 次查看
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

标签 (2)
标记 (3)
0 项奖励
回复
1 回复

613 次查看
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 项奖励
回复