Read USB OTG register in IMX8MM

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

Read USB OTG register in IMX8MM

Jump to solution
811 Views
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 Kudos
Reply
1 Solution
615 Views
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

View solution in original post

0 Kudos
Reply
4 Replies
616 Views
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 Kudos
Reply
741 Views
ajita02
Contributor IV

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

0 Kudos
Reply
774 Views
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 Kudos
Reply
713 Views
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 Kudos
Reply