Find USBPHY_CTRL Resistor in kernel tree ?

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

Find USBPHY_CTRL Resistor in kernel tree ?

跳至解决方案
1,343 次查看
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

标签 (2)
标记 (2)
0 项奖励
回复
1 解答
1,124 次查看
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 项奖励
回复
4 回复数
1,124 次查看
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 项奖励
回复
1,124 次查看
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 项奖励
回复
1,124 次查看
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

1,125 次查看
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 项奖励
回复