imx6 USB OC functionality, used GPIOs

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

imx6 USB OC functionality, used GPIOs

2,738 次查看
Ikal
Contributor II

Hi, folks!

Is it possible to use GPIOs other than

MX6Q_PAD_KEY_COL4__USBOH3_USBOTG_OC or MX6Q_PAD_EIM_D21__USBOH3_USBOTG_OC

and

MX6Q_PAD_KEY_ROW4__USBOH3_USBOTG_PWR or MX6Q_PAD_EIM_D22__USBOH3_USBOTG_PWR

for the related functions?

As I understood in case of xxx_OC this pin is only used to store the information inside a register, isn’t it?

As far as I know, in case of xxx_PWR it might be possible to enable/disable the USB voltage from USB SW driver by using setting/clearing GPIO function instead of writing to the port ctrl. regsitster, isn’t it?

Or is it all done by the imx hardware block directly without the possibility of modifying the SW driver?

TIA.

Kr, Ingo

标签 (2)
标记 (1)
0 项奖励
回复
3 回复数

2,388 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Ingo

you are right: it just stores the information inside a register, so one can use

gpios for these signals, modifying SW driver.

Best regards

igor

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

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

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

0 项奖励
回复

2,388 次查看
Ikal
Contributor II

Hi Igor.

Thanks for your reply.

So, I would assume I have to register an IRQ service for the OC and set the information inside the register, too?

Who is working on that information?

May you give me a hint where to add switching the 5V for the USB OTG part based on the 3.14.38 kernel from the GA Lollipop drop, please?

TIA.

Kr, Ingo

0 项奖励
回复

2,386 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Ingo

please look at attached Linux Manual Chapter 41 CHIPIDEA USB Driver,

in particular sect.41.2.2 Source Code Structure

Best regards

igor

0 项奖励
回复