i.MX31: Make SPI more tolerant by resetting and forcing a reconfigure of the interfac...
commit0c78adce91e17a0e11cd40688ce08356fc4151a2
authorjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Mon, 2 Feb 2009 02:38:21 +0000 (2 02:38 +0000)
committerjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Mon, 2 Feb 2009 02:38:21 +0000 (2 02:38 +0000)
treea73a7d2124305c5578982f1fec872f640bca6b13
parentf4dd28afab33950ecf79ff14c4d3e26aa7c80f8c
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