]> git.baikalelectronics.ru Git - kernel.git/commit
spi: Add s3c64xx SPI Controller driver
authorJassi Brar <jassi.brar@samsung.com>
Mon, 30 Nov 2009 07:39:42 +0000 (07:39 +0000)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 17 Dec 2009 15:58:17 +0000 (08:58 -0700)
commitd79ba34842d057482505c807bb48ba8823bbd61c
treef2cec91b4795c78fa431134a73c5bf0e596a0482
parenteac77f1fad357ba6fed7375df8132e7af22f1282
spi: Add s3c64xx SPI Controller driver

Each SPI controller has exactly one CS line and as such doesn't
provide for multi-cs. We implement a workaround to support
multi-cs by _not_ configuring the mux'ed CS pin for each SPI
controller. The CS mechanism is assumed to be fully machine
specific - the driver doesn't even assume some GPIO pin is used
to control the CS.

The driver selects between DMA and POLLING mode depending upon
the xfer size - DMA mode for xfers bigger than FIFO size, POLLING
mode otherwise.

The driver has been designed to be capable of running SoCs since
s3c64xx and till date, for that reason some of the register fields
have been passed via, SoC specific, platform data.

Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/Kconfig
drivers/spi/Makefile
drivers/spi/spi_s3c64xx.c [new file with mode: 0644]