Find USBPHY_CTRL Resistor in kernel tree ?

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

Find USBPHY_CTRL Resistor in kernel tree ?

Jump to solution
922 Views
jaymind
Contributor IV

Hello,

I have custom board with i.MX6Q used and in which UTMI PHY2 used for USB connection to FTDI FT2232H IC.

So for setting and configuration I want to verify below registers,

USBPHY_CTRL

and want to check these 2 bits ENUTMILEVEL3 and ENUTMILEVEL2, whether it set or not.

So please suggest me that where can I find these USBPHY_CRTL reg. in which file or in which directory in kernel tree. ?

I search it in drivers->usb->core->driver.c, arch->arm->mach-max6->usb_h2.c but I didn't find any significance or clue related to that register.

Any one can suggest me about this.

Thanks in advance

Regards

Jaymin D

Labels (2)
Tags (2)
0 Kudos
1 Solution
703 Views
jaymind
Contributor IV

Dear Igorpadykov,

Thanks for help,

Its helpful me lot.

Finally I founded these 2 bits in file name as "reg-usbphy-mx6.h" in

/arch/arm/plat-mxc/include/mach/

directory in kernel tree.

and their usage founded in file "usb_h1.c" in

/arch/arm/mach-mx6/

directory in kernel tree.

I founded that they are set. :smileyhappy:

Bit no. 14 for UTMI level 3(0x8000) and bit no. 15 for UTMI level 2(0x4000)

Thank you for your share.

Regards

Jaymin D

View solution in original post

0 Kudos
4 Replies
703 Views
igorpadykov
NXP Employee
NXP Employee

Hi Jaymin

these bits may be set automatically by driver and used for

low speed devices, FT2232H does not support low speed.

http://www.ftdichip.com/Support/Documents/DataSheets/ICs/DS_FT2232H.pdf

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
703 Views
jaymind
Contributor IV

Dear Igorpadykov,

Thanks for reply, it will help me.

But can you please specify me that which driver set these bits ?

I mean which driver USB driver of i.MX6Q or FTDI FT2232H usb driver. ? :smileyconfused:

If you explain related to this topic in little more then it will surely benefit me.

Regards

Jaymin D

0 Kudos
703 Views
igorpadykov
NXP Employee
NXP Employee

Hi Jaymin

please look at attached document

Chapter 41 CHIPIDEA USB Driver

it describes i.MX6 linux usb driver.

Best regards

igor

704 Views
jaymind
Contributor IV

Dear Igorpadykov,

Thanks for help,

Its helpful me lot.

Finally I founded these 2 bits in file name as "reg-usbphy-mx6.h" in

/arch/arm/plat-mxc/include/mach/

directory in kernel tree.

and their usage founded in file "usb_h1.c" in

/arch/arm/mach-mx6/

directory in kernel tree.

I founded that they are set. :smileyhappy:

Bit no. 14 for UTMI level 3(0x8000) and bit no. 15 for UTMI level 2(0x4000)

Thank you for your share.

Regards

Jaymin D

0 Kudos