i.MX31: Make SPI more tolerant by resetting and forcing a reconfigure of the interfac...
commit1a00056f1f225ee0d1643d3e4e603de171f7ab9a
authorMichael Sevakis <jethead71@rockbox.org>
Mon, 2 Feb 2009 02:38:21 +0000 (2 02:38 +0000)
committerMichael Sevakis <jethead71@rockbox.org>
Mon, 2 Feb 2009 02:38:21 +0000 (2 02:38 +0000)
treea73a7d2124305c5578982f1fec872f640bca6b13
parent304aefe80256429e8c1cbdbb5afd1693d90041aa
i.MX31: Make SPI more tolerant by resetting and forcing a reconfigure of the interface if an error ever happens. Better handle PMIC GPIO interrupt; it definitely doesn't low-pulse PRIINT (remains high if sources become active again or stay active while acking) so needed rising edge may never happen in such a case-- use high-level detection rather than rising edge. Optimize the reg/clr/set/mod functions a bit since they get more regular use now.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19903 a1c6a512-1295-4272-9138-f99709370657
firmware/target/arm/imx31/gigabeat-s/gpio-gigabeat-s.c
firmware/target/arm/imx31/gigabeat-s/gpio-target.h
firmware/target/arm/imx31/gigabeat-s/mc13783-imx31.c
firmware/target/arm/imx31/gigabeat-s/spi-imx31.c
firmware/target/arm/imx31/gigabeat-s/system-imx31.c