]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: mc13xxx workaround SPI hardware bug on i.Mx
authorPhilippe Rétornaz <philippe.retornaz@epfl.ch>
Tue, 29 May 2012 09:06:29 +0000 (11:06 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 8 Jul 2012 22:16:07 +0000 (00:16 +0200)
commitb60b839f5136360f61bfe15a20a74e506b72195a
tree04d2258310b91f54c3c595ff7d3a90b5447f1d6d
parent6be8b8aaca9e67f3860b5f3b37a776c6ba59d599
mfd: mc13xxx workaround SPI hardware bug on i.Mx

The MC13xxx PMIC is mainly used on i.Mx SoC. On those SoC the SPI
hardware will deassert CS line as soon as the SPI FIFO is empty.
The MC13xxx hardware is very sensitive to CS line change as it
corrupts the transfer if CS is deasserted in the middle of a register
read or write.
It is not possible to use the CS line as a GPIO on some SoC, so we
need to workaround this by implementing a single SPI transfer to
access the PMIC.

Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Marc Reilly <marc@cpdesign.com.au>
Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/mc13xxx-spi.c