spi: SuperH SPI using SCI
PATCH 1/1 spi: SuperH SPI using SCI
From: Magnus Damm <[email protected]>
spi: add support for SPI over SuperH SCI pins V2
This patch adds support for SPI over SCI pins. SCI is a very simple serial controller block that can be found on older SuperH processors. In theory it is possible to use the SCI hardware block in syncronous mode, but this version of the driver simply hooks up the bit banging code on the SCI pins.
Changes since V1 include:
- Comment and copyright fixes.
- Use ioremap() together with ioread8()/iowrite8().
- Store register value copy in sp->val.
- Remove spi device registration code.
--- drivers/spi/Kconfig | 7 + drivers/spi/Makefile | 1 drivers/spi/spi_sh_sci.c | 205 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 213 insertions(+)
drivers/spi/Kconfig +7 -0
@@ -182,6 +182,13 @@ config SPI_S3C24XX_GPIO the inbuilt hardware cannot provide the transfer mode, or where the board is using non hardware connected pins. +config SPI_SH_SCI + tristate "SuperH SCI SPI controller" + depends on SPI_MASTER && SUPERH + select SPI_BITBANG + help + SPI driver for SuperH SCI blocks. + config SPI_TXX9 tristate "Toshiba TXx9 SPI controller" depends on SPI_MASTER && GENERIC_GPIO && CPU_TX49XX
drivers/spi/Makefile +1 -0
@@ -27,6 +27,7 @@ obj-$(CONFIG_SPI_S3C24XX_GPIO) += spi_s obj-$(CONFIG_SPI_S3C24XX) += spi_s3c24xx.o obj-$(CONFIG_SPI_TXX9) += spi_txx9.o obj-$(CONFIG_SPI_XILINX) += xilinx_spi.o +obj-$(CONFIG_SPI_SH_SCI) += spi_sh_sci.o # ... add above this line ... # SPI protocol drivers (device/link on bus)
drivers/spi/spi_sh_sci.c new file +205 -0
205 lines not on this page · raw message
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/