Read USB OTG register in IMX8MM

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

Read USB OTG register in IMX8MM

跳至解决方案
810 次查看
ajita02
Contributor IV

Hi all,

I want to read "USBNC_n_PHY_STATUS" register in IMX8MM board. How can we do that?

Thanks,
Ajita

iMX8MMINI  #USB #USB_PHY

 

 

0 项奖励
回复
1 解答
614 次查看
ajita02
Contributor IV

Hi all,

I made changes in usbmisc_imx.c file. I am able to detect USB connection to charger, USB connection to PC and USB disconnection. Please close this issue.

Thanks & Regards,
Ajita

在原帖中查看解决方案

0 项奖励
回复
4 回复数
615 次查看
ajita02
Contributor IV

Hi all,

I made changes in usbmisc_imx.c file. I am able to detect USB connection to charger, USB connection to PC and USB disconnection. Please close this issue.

Thanks & Regards,
Ajita

0 项奖励
回复
740 次查看
ajita02
Contributor IV

I want to read that register while my application is working. Can you tell me how can we achieve that?

0 项奖励
回复
773 次查看
Harvey021
NXP TechSupport
NXP TechSupport

Hi 

You can read it either use md at U-Boot or use memtool at /unit_tests.

 

Regards

Harvey

0 项奖励
回复
712 次查看
ajita02
Contributor IV

Hi @Harvey021 ,

We want to know whether USB cable is connected or not to board. We have only VBUS pin not ID pin. also, our custom board only have USB peripheral hardware present. Can you help us to know detection event of USB from software?

Thanks,
Ajita 

0 项奖励
回复