Skip to contentSkip to conversation

spi: add support SuperH SPI module

PATCH New Yoshihiro Shimoda 1 participant 1 message Jan 31, 2011 SPI

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 spi: add support SuperH SPI module

SH7757 has SPI module. This patch supports it.

---
about v4:
- add description of CONFIG_SH_SPI to README

 README               |    5 +
 drivers/spi/Makefile |    1 +
 drivers/spi/sh_spi.c |  261 ++++++++++++++++++++++++++++++++++++++++++++++++++
 drivers/spi/sh_spi.h |   79 +++++++++++++++
 4 files changed, 346 insertions(+), 0 deletions(-)
 create mode 100644 drivers/spi/sh_spi.c
 create mode 100644 drivers/spi/sh_spi.h
README +5 -0
index 7de9b14..4ec1c30 100644
@@ -1656,6 +1656,11 @@ The following options need to be configured:
 		SPI EEPROM, also an instance works with Crystal A/D and
 		D/As on the SACSng board)
 
+		CONFIG_SH_SPI
+
+		Enables the driver for SPI controller on SuperH. Currently
+		only SH7757 is supported.
+
 		CONFIG_SPI_X
 
 		Enables extended (16-bit) SPI EEPROM addressing.
drivers/spi/Makefile +1 -0
index e34a124..d582fbb 100644
@@ -37,6 +37,7 @@ COBJS-$(CONFIG_MPC8XXX_SPI) += mpc8xxx_spi.o
 COBJS-$(CONFIG_MXC_SPI) += mxc_spi.o
 COBJS-$(CONFIG_OMAP3_SPI) += omap3_spi.o
 COBJS-$(CONFIG_SOFT_SPI) += soft_spi.o
+COBJS-$(CONFIG_SH_SPI) += sh_spi.o
 
 COBJS	:= $(COBJS-y)
 SRCS	:= $(COBJS:.o=.c)
drivers/spi/sh_spi.c new file +261 -0

261 lines not on this page · raw message

drivers/spi/sh_spi.h new file +79 -0

79 lines not on this page · raw message

Signature · 1 line
1.7.1