spi: add support SuperH SPI module
PATCH v4 1/1 spi: add support SuperH SPI module
SH7757 has SPI module. This patch supports it.
Signed-off-by Yoshihiro Shimoda <[email protected]>
---
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
@@ -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
@@ -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