mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
spi: new orion_spi driver
This adds an SPI driver for the SPI controller found in various Marvell Orion ARM SoCs. It currently supports only one slave, which must use SPI mode 0. [dbrownell@users.sourceforge.net: cleanups, meet specs, pass "sparse"] Signed-off-by: Shadi Ammouri <shadi@marvell.com> Signed-off-by: Saeed Bishara <saeed@marvell.com> Signed-off-by: Lennert Buytenhek <buytenh@marvell.com> 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>
This commit is contained in:
committed by
Linus Torvalds
parent
756fcab277
commit
60cadec9da
@@ -149,6 +149,12 @@ config SPI_OMAP24XX
|
||||
SPI master controller for OMAP24xx/OMAP34xx Multichannel SPI
|
||||
(McSPI) modules.
|
||||
|
||||
config SPI_ORION
|
||||
tristate "Orion SPI master (EXPERIMENTAL)"
|
||||
depends on PLAT_ORION && EXPERIMENTAL
|
||||
help
|
||||
This enables using the SPI master controller on the Orion chips.
|
||||
|
||||
config SPI_PXA2XX
|
||||
tristate "PXA2xx SSP SPI master"
|
||||
depends on ARCH_PXA && EXPERIMENTAL
|
||||
|
||||
@@ -21,6 +21,7 @@ obj-$(CONFIG_SPI_LM70_LLP) += spi_lm70llp.o
|
||||
obj-$(CONFIG_SPI_PXA2XX) += pxa2xx_spi.o
|
||||
obj-$(CONFIG_SPI_OMAP_UWIRE) += omap_uwire.o
|
||||
obj-$(CONFIG_SPI_OMAP24XX) += omap2_mcspi.o
|
||||
obj-$(CONFIG_SPI_ORION) += orion_spi.o
|
||||
obj-$(CONFIG_SPI_MPC52xx_PSC) += mpc52xx_psc_spi.o
|
||||
obj-$(CONFIG_SPI_MPC83xx) += spi_mpc83xx.o
|
||||
obj-$(CONFIG_SPI_S3C24XX_GPIO) += spi_s3c24xx_gpio.o
|
||||
|
||||
574
drivers/spi/orion_spi.c
Normal file
574
drivers/spi/orion_spi.c
Normal file
File diff suppressed because it is too large
Load Diff
17
include/linux/spi/orion_spi.h
Normal file
17
include/linux/spi/orion_spi.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* orion_spi.h
|
||||
*
|
||||
* This file is licensed under the terms of the GNU General Public
|
||||
* License version 2. This program is licensed "as is" without any
|
||||
* warranty of any kind, whether express or implied.
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_SPI_ORION_SPI_H
|
||||
#define __LINUX_SPI_ORION_SPI_H
|
||||
|
||||
struct orion_spi_info {
|
||||
u32 tclk; /* no <linux/clk.h> support yet */
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user