diff options
author | Erik Gilling <konkers@android.com> | 2010-04-22 18:58:25 -0400 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2010-10-21 21:15:05 -0400 |
commit | 0c03a1dd5bd8a37932ae1d519156172affef22fd (patch) | |
tree | dcdbf07d5e226664afdf8ca3d542a4523b0902c1 /drivers/spi/Kconfig | |
parent | f2a443931e6c7616aa023f55ddfdbca8943ab0e9 (diff) |
spi: add spi_tegra driver
v2 changes:
from Thierry Reding:
* add "select TEGRA_SYSTEM_DMA" to Kconfig
from Grant Likely:
* add oneline description to header
* inline references to DRIVER_NAME
* inline references to BUSY_TIMEOUT
* open coded bytes_per_word()
* spi_readl/writel -> spi_tegra_readl/writel
* move transfer validation to spi_tegra_transfer
* don't request_mem_region iomem as platform bus does that for us
* __exit -> __devexit
v3 changes:
from Russell King:
* put request_mem_region back int
from Grant Likely:
* remove #undef DEBUG
* add SLINK_ to register bit defines
* remove unused bytes_per_word
* make spi_tegra_readl/writel static linine
* various refactoring for clarity
* mark err if BSY bit is not cleared after 1000 retries
* move spinlock to protect setting of RDY bit
* subsys_initcall -> module_init
v3 changes:
from Grant Likely:
* update spi_tegra to use PTR_ERRless dma API
v4 changes:
from Grant Likely:
* remove empty spi_tegra_cleanup fucntion
* allow device ids of -1
Signed-off-by: Erik Gilling <konkers@android.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Thierry Reding <thierry.reding@avionic-design.de>
Cc: Russell King <linux@arm.linux.org.uk>
spi: tegra: cleanups from upstream review
Change-Id: Icecf7e64efcb39de072a15234ba1faa4bad40d25
Signed-off-by: Erik Gilling <konkers@android.com>
Diffstat (limited to 'drivers/spi/Kconfig')
-rw-r--r-- | drivers/spi/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 4b9eec68fad6..78f9fd02c1b2 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig | |||
@@ -329,6 +329,13 @@ config SPI_STMP3XXX | |||
329 | help | 329 | help |
330 | SPI driver for Freescale STMP37xx/378x SoC SSP interface | 330 | SPI driver for Freescale STMP37xx/378x SoC SSP interface |
331 | 331 | ||
332 | config SPI_TEGRA | ||
333 | tristate "Nvidia Tegra SPI controller" | ||
334 | depends on ARCH_TEGRA | ||
335 | select TEGRA_SYSTEM_DMA | ||
336 | help | ||
337 | SPI driver for NVidia Tegra SoCs | ||
338 | |||
332 | config SPI_TOPCLIFF_PCH | 339 | config SPI_TOPCLIFF_PCH |
333 | tristate "Topcliff PCH SPI Controller" | 340 | tristate "Topcliff PCH SPI Controller" |
334 | depends on PCI | 341 | depends on PCI |