Skip to contentSkip to conversation

spi: driver for the Synopsys DesignWare SPI controller

PATCH New Baruch Siach 1 participant 1 message May 19, 2009 SPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: driver for the Synopsys DesignWare SPI controller

---
 drivers/spi/Kconfig            |    6 +
 drivers/spi/Makefile           |    1 +
 drivers/spi/designware_spi.c   |  719 ++++++++++++++++++++++++++++++++++++++++
 include/linux/spi/designware.h |   10 +
 4 files changed, 736 insertions(+), 0 deletions(-)
 create mode 100644 drivers/spi/designware_spi.c
 create mode 100644 include/linux/spi/designware.h
drivers/spi/Kconfig +6 -0
index 83a185d..dca6dd1 100644
@@ -116,6 +116,12 @@ config SPI_GPIO
 	  GPIO operations, you should be able to leverage that for better
 	  speed with a custom version of this driver; see the source code.
 
+config SPI_DESIGNWARE
+	tristate "Synopsys DesignWare SPI controller"
+	  depends on SPI_MASTER
+	  help
+	    SPI controller driver for the Synopsys DesignWare DW_apb_ssi.
+
 config SPI_IMX
 	tristate "Freescale iMX SPI controller"
 	depends on ARCH_IMX && EXPERIMENTAL
drivers/spi/Makefile +1 -0
index 5d04519..bf51c5a 100644
@@ -17,6 +17,7 @@ obj-$(CONFIG_SPI_BITBANG)		+= spi_bitbang.o
 obj-$(CONFIG_SPI_AU1550)		+= au1550_spi.o
 obj-$(CONFIG_SPI_BUTTERFLY)		+= spi_butterfly.o
 obj-$(CONFIG_SPI_GPIO)			+= spi_gpio.o
+obj-$(CONFIG_SPI_DESIGNWARE)		+= designware_spi.o
 obj-$(CONFIG_SPI_IMX)			+= spi_imx.o
 obj-$(CONFIG_SPI_LM70_LLP)		+= spi_lm70llp.o
 obj-$(CONFIG_SPI_PXA2XX)		+= pxa2xx_spi.o
drivers/spi/designware_spi.c new file +719 -0

719 lines not on this page · raw message

include/linux/spi/designware.h new file +10 -0
new file mode 100644
index 0000000..26427cd
@@ -0,0 +1,10 @@
+/*
+ * designware.h - platform glue for the Synopsys DesignWare SPI controller
+ */
+
+struct designware_platform_data {
+	unsigned int	ssi_clk;	/* clock in Hz */
+	unsigned int	tx_fifo_depth;	/* bytes in TX FIFO */
+	unsigned int	rx_fifo_depth;	/* bytes in RX FIFO */
+	u16		num_chipselect;	/* number of CSs */
+};
Signature · 9 lines
1.6.2.4


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects