Skip to contentSkip to conversation

intel_mid_ssp_spi: Moorestown and Medfield SPI for SSP devices

PATCH Superseded Alan Cox 2 participants 3 messages Jan 26, 2012 2 messages not in the archive SPI

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 intel_mid_ssp_spi: Moorestown and Medfield SPI for SSP devices

From: Mathieu SOULARD <[email protected]>

This driver is a fusion of various internal drivers into a single driver for the SPI slave/master on the Intel Moorestown and Medfield SSP devices.

[Queueing and runtime pm added]
[Ported to the -next tree DMA engine, stripped Moorestown, further cleanup]

---

 drivers/spi/Kconfig             |    8 
 drivers/spi/Makefile            |    2 
 drivers/spi/spi-intel-mid-ssp.c | 1426 +++++++++++++++++++++++++++++++++++++++
 drivers/spi/spi-intel-mid-ssp.h |  308 ++++++++
 4 files changed, 1743 insertions(+), 1 deletions(-)
 create mode 100644 drivers/spi/spi-intel-mid-ssp.c
 create mode 100644 drivers/spi/spi-intel-mid-ssp.h
drivers/spi/Kconfig +8 -0
index 3f9a47e..ed8363e 100644
@@ -163,6 +163,14 @@ config SPI_IMX
 	  This enables using the Freescale i.MX SPI controllers in master
 	  mode.
 
+config SPI_INTEL_MID_SSP
+	tristate "SSP SPI controller driver for Intel MID platforms (EXPERIMENTAL)"
+	depends on SPI_MASTER && INTEL_MID_DMAC && EXPERIMENTAL
+	help
+	  This is the unified SSP SPI slave controller driver for the Intel
+	  MID platforms, handling Moorestown & Medfield, master & slave
+	  clock mode.
+
 config SPI_LM70_LLP
 	tristate "Parallel port adapter for LM70 eval board (DEVELOPMENT)"
 	depends on PARPORT && EXPERIMENTAL
drivers/spi/Makefile +1 -1
index 61c3261..e81757a 100644
@@ -58,4 +58,4 @@ obj-$(CONFIG_SPI_TLE62X0)		+= spi-tle62x0.o
 obj-$(CONFIG_SPI_TOPCLIFF_PCH)		+= spi-topcliff-pch.o
 obj-$(CONFIG_SPI_TXX9)			+= spi-txx9.o
 obj-$(CONFIG_SPI_XILINX)		+= spi-xilinx.o
-
+obj-$(CONFIG_SPI_INTEL_MID_SSP)		+= spi-intel-mid-ssp.o
drivers/spi/spi-intel-mid-ssp.c new file +1426 -0

1,426 lines not on this page · raw message

drivers/spi/spi-intel-mid-ssp.h new file +308 -0

308 lines not on this page · raw message

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d

A message that is not in the archive (sent off-list or not yet received): 20120126175730.13631.67348.stgit-Z/[email protected]

#2 lore raw
Quoted 11 lines · Alan Cox

From: Mathieu SOULARD <[email protected]>

This driver is a fusion of various internal drivers into a single driver for the SPI slave/master on the Intel Moorestown and Medfield SSP devices.

[Queueing and runtime pm added]
[Ported to the -next tree DMA engine, stripped Moorestown, further cleanup]
Quoted 6 lines

---

 drivers/spi/Kconfig             |    8
 drivers/spi/Makefile            |    2 drivers/spi/spi-intel-mid-ssp.c | 1426 +++++++++++++++++++++++++++++++++++++++ drivers/spi/spi-intel-mid-ssp.h |  308 ++++++++

Haven't reviewed the patch yet, but I've got a question on this. Are there any other users of this header file? Can I just roll it into the .c file if I pick up the patch?

g.

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d

A message that is not in the archive (sent off-list or not yet received): CACxGe6uHm54gKkBdCDxhJdwxGnCKPW0wWPwbXA+vT_qijfMFAg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

author
#4 lore raw
Quoted 14 lines · On Thu, 26 Jan 2012 12:18:41 -0700 Grant Likely…
Quoted 13 lines · Alan Cox

From: Mathieu SOULARD <[email protected]>

This driver is a fusion of various internal drivers into a single driver for the SPI slave/master on the Intel Moorestown and Medfield SSP devices.

[Queueing and runtime pm added]
[Ported to the -next tree DMA engine, stripped Moorestown, further cleanup]

---

Quoted 8 lines
Quoted 4 lines

 drivers/spi/Kconfig             |    8
 drivers/spi/Makefile            |    2 drivers/spi/spi-intel-mid-ssp.c | 1426 +++++++++++++++++++++++++++++++++++++++ drivers/spi/spi-intel-mid-ssp.h |  308 ++++++++

Haven't reviewed the patch yet, but I've got a question on this. Are there any other users of this header file? Can I just roll it into the .c file if I pick up the patch?

They can be rolled together. There is a driver pending for the device in I²S mode but there isn't anything in common.

Alan

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d