diff options
author | Andrea Paterniani <a.paterniani@swapp-eng.it> | 2007-02-12 03:52:39 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-12 12:48:30 -0500 |
commit | 69c202afa8ad6d6c1c673d8f9d47b43a0a3604e5 (patch) | |
tree | a8f79c7911042c3cbc1b71e49e51f0c7ebf8055e /drivers/spi/Kconfig | |
parent | fdb3c18d639311287dc4675abe743847a1aa62a8 (diff) |
[PATCH] SPI: Freescale iMX SPI controller driver (BIS+)
Add the SPI controller driver for Freescale i.MX(S/L/1).
Main features summary:
> Per chip setup via board specific code and/or protocol driver.
> Per transfer setup.
> PIO transfers.
> DMA transfers.
> Managing of NULL tx / rx buffer for rd only / wr only transfers.
This patch replace patch-2.6.20-rc4-spi_imx with the following changes:
> Few cosmetic changes.
> Function map_dma_buffers now return 0 for success and -1 for failure.
> Solved a bug inside spi_imx_probe function (wrong error path).
> Solved a bug inside setup function (bad undo setup for max_speed_hz).
> For read-only transfers, always write zero bytes.
This is almost the same as the 'BIS' version sent by Andrea, except for
updating the 'DUMMY' byte so that read-only transfers shift out zeroes.
That part of the API changed recently, since some half duplex peripheral
chips require that semantic.
Signed-off-by: Andrea Paterniani <a.paterniani@swapp-eng.it>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/spi/Kconfig')
-rw-r--r-- | drivers/spi/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index 2a2f44d1367d..b217a65453f5 100644 --- a/drivers/spi/Kconfig +++ b/drivers/spi/Kconfig | |||
@@ -75,6 +75,13 @@ config SPI_BUTTERFLY | |||
75 | inexpensive battery powered microcontroller evaluation board. | 75 | inexpensive battery powered microcontroller evaluation board. |
76 | This same cable can be used to flash new firmware. | 76 | This same cable can be used to flash new firmware. |
77 | 77 | ||
78 | config SPI_IMX | ||
79 | tristate "Freescale iMX SPI controller" | ||
80 | depends on SPI_MASTER && ARCH_IMX && EXPERIMENTAL | ||
81 | help | ||
82 | This enables using the Freescale iMX SPI controller in master | ||
83 | mode. | ||
84 | |||
78 | config SPI_MPC83xx | 85 | config SPI_MPC83xx |
79 | tristate "Freescale MPC83xx SPI controller" | 86 | tristate "Freescale MPC83xx SPI controller" |
80 | depends on SPI_MASTER && PPC_83xx && EXPERIMENTAL | 87 | depends on SPI_MASTER && PPC_83xx && EXPERIMENTAL |
@@ -94,6 +101,7 @@ config SPI_OMAP_UWIRE | |||
94 | help | 101 | help |
95 | This hooks up to the MicroWire controller on OMAP1 chips. | 102 | This hooks up to the MicroWire controller on OMAP1 chips. |
96 | 103 | ||
104 | |||
97 | config SPI_PXA2XX | 105 | config SPI_PXA2XX |
98 | tristate "PXA2xx SSP SPI master" | 106 | tristate "PXA2xx SSP SPI master" |
99 | depends on SPI_MASTER && ARCH_PXA && EXPERIMENTAL | 107 | depends on SPI_MASTER && ARCH_PXA && EXPERIMENTAL |