Skip to contentSkip to conversation

spi: driver for SPI controller of Intel Moorestown platform

PATCH In review Feng Tang 1 participant 1 message Jun 15, 2009 SPI

lore
Share & tools
lore

Feng Tang

author
#0 lore raw

PATCH 1/2 spi: driver for SPI controller of Intel Moorestown platform

Quoted 1 line

From 5aeff10330cef37792857c5f6977503607deb3b0 Mon Sep 17 00:00:00 2001

From: Feng Tang <[email protected]>
Date: Mon, 15 Jun 2009 16:50:44 +0800
Subject: [PATCH 1/2] spi: driver for SPI controller of Intel Moorestown platform

The controller is a PCI device, and supports both PIO and DMA mode.

This driver has been tested with Maxim's Max3110 UART device and Option's 3G modem GTM501L, both PIO and DMA works fine, and these 2 slave devcies can work simultaneously

User can use "dw_apb_ssi_db.pdf" from Synopsys as HW datasheet

---
 drivers/spi/Kconfig          |    9 +
 drivers/spi/Makefile         |    1 +
 drivers/spi/mrst_spi.c       | 1153 ++++++++++++++++++++++++++++++++++++++++++
 include/linux/spi/mrst_spi.h |  143 ++++++
 4 files changed, 1306 insertions(+), 0 deletions(-)
 create mode 100644 drivers/spi/mrst_spi.c
 create mode 100644 include/linux/spi/mrst_spi.h
drivers/spi/Kconfig +9 -0
index 83a185d..e1cba00 100644
@@ -220,6 +220,15 @@ config SPI_XILINX
 	  See the "OPB Serial Peripheral Interface (SPI) (v1.00e)"
 	  Product Specification document (DS464) for hardware details.
 
+config SPI_MRST
+	tristate "SPI controller driver for Intel Moorestown platform "
+	depends on SPI_MASTER && PCI
+	help
+	  Driver for SPI controller on Intel Moorestown platform.
+
+	  The controller is a PCI device, and its core is a Synopsis
+	  DesignWare SPI controller.
+
 #
 # Add new SPI master controllers in alphabetical order above this line
 #
drivers/spi/Makefile +1 -0
index 5d04519..d07825d 100644
@@ -30,6 +30,7 @@ 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
+obj-$(CONFIG_SPI_MRST)			+= mrst_spi.o
 # 	... add above this line ...
 
 # SPI protocol drivers (device/link on bus)
drivers/spi/mrst_spi.c new file +1153 -0

1,153 lines not on this page · raw message

include/linux/spi/mrst_spi.h new file +143 -0

143 lines not on this page · raw message

Signature · 8 lines
1.5.6.3

------------------------------------------------------------------------------
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