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
已解决! 转到解答。
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.
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!
-----------------------------------------------------------------------------------------------------------------------