spi: davinci spi driver
Subsystems (4)
PATCH 1/1 spi: davinci spi driver
From: Sandeep Paulraj <[email protected]>
The patch adds a SPI driver for DaVinci series SOC's.
[[email protected]: fixes and cleanup]
--- arch/arm/mach-davinci/include/mach/spi.h | 45 + drivers/spi/Kconfig | 7 drivers/spi/Makefile | 1 drivers/spi/davinci_spi.c | 757 +++++++++++++++++++++++++++++ drivers/spi/davinci_spi.h | 163 ++++++ 5 files changed, 973 insertions(+)
arch/arm/mach-davinci/include/mach/spi.h new file +45 -0
@@ -0,0 +1,45 @@ +/* +* Copyright 2009 Texas Instruments. +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#ifndef __ARCH_ARM_DAVINCI_SPI_H +#define __ARCH_ARM_DAVINCI_SPI_H + +#define SPI_INTERN_CS 0xFF + +enum { +SPI_VERSION_1 ,/* For DM355/DM365/DM6467*/ +SPI_VERSION_2 ,/* For DA8xx */ +}; + +struct davinci_spi_platform_data { +u8 version; +u16 num_chipselect; +u32 wdelay; +u32 odd_parity; +u32 parity_enable; +u32 wait_enable; +u32 timer_disable; +u32 clk_internal; +u32 cs_hold; +u32 intr_level; +u32 poll_mode; +u8 c2tdelay; +u8 t2cdelay; +}; + +#endif /* __ARCH_ARM_DAVINCI_SPI_H */
drivers/spi/Kconfig +7 -0
@@ -77,6 +77,13 @@ config SPI_AU1550 This driver can also be built as a module. If so, the module will be called au1550_spi. +config SPI_DAVINCI + tristate "SPI controller driver for DaVinci/DA8xx SoC's" + depends on SPI_MASTER && ARCH_DAVINCI + select SPI_BITBANG + help + SPI master controller for DaVinci and DA8xx SPI modules. + config SPI_BITBANG tristate "Utilities for Bitbanging SPI masters" help
drivers/spi/Makefile +1 -0
@@ -16,6 +16,7 @@ obj-$(CONFIG_SPI_BFIN) += spi_bfin5xx. obj-$(CONFIG_SPI_BITBANG) += spi_bitbang.o obj-$(CONFIG_SPI_AU1550) += au1550_spi.o obj-$(CONFIG_SPI_BUTTERFLY) += spi_butterfly.o +obj-$(CONFIG_SPI_DAVINCI) += davinci_spi.o obj-$(CONFIG_SPI_GPIO) += spi_gpio.o obj-$(CONFIG_SPI_IMX) += mxc_spi.o obj-$(CONFIG_SPI_LM70_LLP) += spi_lm70llp.o
drivers/spi/davinci_spi.c new file +757 -0
757 lines not on this page · raw message
drivers/spi/davinci_spi.h new file +163 -0
163 lines not on this page · raw message
A message that is not in the archive (sent off-list or not yet received): 200908271858.48850.david-b-yBeKhBN/[email protected]
Hello.
Quoted 9 lines · David Brownell
From: Sandeep Paulraj <[email protected]>
The patch adds a SPI driver for DaVinci series SOC's.
[[email protected]: fixes and cleanup]
Signed-off-by Sandeep Paulraj <[email protected]>Signed-off-by David Brownell <[email protected]>
This patch lacks MV people's signoffs (and MV copyright on the driver).
WBR, Sergei
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · Sergei Shtylyov
Hello.
Quoted 4 lines · David Brownell
From: Sandeep Paulraj <[email protected]>
The patch adds a SPI driver for DaVinci series SOC's.
Quoted 7 lines
Quoted 5 lines
[[email protected]: fixes and cleanup]
Signed-off-by Sandeep Paulraj <[email protected]>Signed-off-by David Brownell <[email protected]>This patch lacks MV people's signoffs (and MV copyright on the driver).
-ENOPATCH
I don't recall seeing any version with MV attributions, FWIW.
A message that is not in the archive (sent off-list or not yet received): 200908280221.24889.david-b-yBeKhBN/[email protected]
Hello.
Quoted 10 lines · David Brownell
Quoted 10 lines
Quoted 10 lines
From: Sandeep Paulraj <[email protected]>
The patch adds a SPI driver for DaVinci series SOC's.
[[email protected]: fixes and cleanup]
Signed-off-by Sandeep Paulraj <[email protected]>Signed-off-by David Brownell <[email protected]>
Quoted 6 lines
Quoted 2 lines
This patch lacks MV people's signoffs (and MV copyright on the driver).
-ENOPATCHI don't recall seeing any version with MV attributions, FWIW.
Because there was none. :-)
I have just mailed Sandeep about this yesterday.
WBR, Sergei
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
A message that is not in the archive (sent off-list or not yet received): [email protected]
Sergei, Dave,
When i started this SPI process many moons ago, i am absolutely sure that i sent out e-mails on our internal TI MV mailing list asking for the appropriate signoffs. I can dig out the e-mails but i don't see what can be achieved on doing that. I did not get any responses then.
Obviously that time the driver was not ready for submission and now seems an auspicious time.
I'll take care of all pending issues, i.e signoffs, copyright(which as pointed out was not present in the original driver) and send the patch.
Thanks,
Sandeep
________________________________________
From: davinci-linux-open-source-bounces-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org [davinci-linux-open-source-bounces-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org] On Behalf Of Sergei Shtylyov [[email protected]]
Sent: Friday, August 28, 2009 6:09 AM
To: David Brownell
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org; Andrew Morton; DaVinci
Subject: Re: [patch 2.6.31-rc7] spi: davinci spi driver
Hello.
Quoted 10 lines · David Brownell
Quoted 10 lines
Quoted 10 lines
From: Sandeep Paulraj <[email protected]>
The patch adds a SPI driver for DaVinci series SOC's.
[[email protected]: fixes and cleanup]
Signed-off-by Sandeep Paulraj <[email protected]>Signed-off-by David Brownell <[email protected]>
Quoted 6 lines
Quoted 2 lines
This patch lacks MV people's signoffs (and MV copyright on the driver).
-ENOPATCHI don't recall seeing any version with MV attributions, FWIW.
Because there was none. :-)
I have just mailed Sandeep about this yesterday.
WBR, Sergei
_______________________________________________
Davinci-linux-open-source mailing list Davinci-linux-open-source-VycZQUHpC/PFrsHnngEfi1aTQe2KTcn/@public.gmane.org
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source