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
372 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
1 Solution
176 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
4 Replies
177 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
302 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
335 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
274 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