imx6 USB OC functionality, used GPIOs

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx6 USB OC functionality, used GPIOs

2,769件の閲覧回数
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,419件の閲覧回数
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,419件の閲覧回数
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,417件の閲覧回数
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 件の賞賛
返信