Pinmux modification at runtime

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

Pinmux modification at runtime

ソリューションへジャンプ
1,690件の閲覧回数
JeromeBaron
Contributor II

Hi everyone,

I'm working on a platform with a iMX28 that runs Linux. I would like to know if it's allowed to change the pinmux at runtime, while in the Linux.

My goal is to use a SPI port, program a device, then change those IO to GPIO after the programmation.

Can I do this? How?

Regards,

Jerome

0 件の賞賛
1 解決策
1,289件の閲覧回数
JeromeBaron
Contributor II

It appears the answer is a simple memory write to the CPU registers. I have found a small application(imxregs) in amadeus distribution to access those registers.

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
1,290件の閲覧回数
JeromeBaron
Contributor II

It appears the answer is a simple memory write to the CPU registers. I have found a small application(imxregs) in amadeus distribution to access those registers.

0 件の賞賛
1,289件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Jerome

seems not, since linux spi driver will own pins. To rmmod driver one needs

to be administrator with root permissions.

Best regards

igor

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

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

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

0 件の賞賛