Read USB OTG register in IMX8MM

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Read USB OTG register in IMX8MM

ソリューションへジャンプ
441件の閲覧回数
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 解決策
245件の閲覧回数
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 返答(返信)
246件の閲覧回数
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 件の賞賛
371件の閲覧回数
ajita02
Contributor IV

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

0 件の賞賛
404件の閲覧回数
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 件の賞賛
343件の閲覧回数
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 件の賞賛