Pinmux modification at runtime

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

Pinmux modification at runtime

跳至解决方案
1,712 次查看
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,311 次查看
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,312 次查看
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,311 次查看
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 项奖励
回复