]> git.baikalelectronics.ru Git - kernel.git/commit
spi: fsl-espi: Configure FSL eSPI CSBEF and CSAFT
authorJane Wan <Jane.Wan@gainspeed.com>
Wed, 16 Apr 2014 20:09:39 +0000 (13:09 -0700)
committerMark Brown <broonie@linaro.org>
Wed, 16 Apr 2014 21:04:07 +0000 (22:04 +0100)
commit6b23690c7d3c3af2b00ce8a3efdd1d3d666f49ee
treec47f7624dd288d6f21124ecaae401cd228d27736
parent03a169e57a9a3fd69c1713c317a06f163ad63b5c
spi: fsl-espi: Configure FSL eSPI CSBEF and CSAFT

Make FSL eSPI CSnBEF and CSnAFT fields in ESPI_SPMODEn registers
(n=0,1,2,3) configurable through device tree.

CSnBEF is the chip select setup time.  It's the delay in bits from the
activation of chip select pin to the first clock for data frame.

CSnAFT is the chip select hold time.  It's the delay in bits from the
last clock for data frame to the deactivation of chip select pin.

The FSL eSPI driver hardcodes CSnBEF and CSnAFT to 0.  Need to set
them to a different value for some device.

Signed-off-by: Jane Wan <Jane.Wan@gainspeed.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Documentation/devicetree/bindings/spi/fsl-spi.txt
drivers/spi/spi-fsl-espi.c