diff options
author | Mika Westerberg <mika.westerberg@iki.fi> | 2010-05-06 00:47:04 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-05-25 02:23:16 -0400 |
commit | 011f23a3c2f20ae15b7664d3942493af107fe39b (patch) | |
tree | b5dbae0b150308b29ea2545c98339532830ee479 /arch/arm/mach-ep93xx/include | |
parent | 1dcf57ceb461fe2ddeb622fe84d9918aadefe7ba (diff) |
spi/ep93xx: implemented driver for Cirrus EP93xx SPI controller
This patch adds an SPI master driver for the Cirrus EP93xx SPI controller found
in EP93xx chips.
Signed-off-by: Mika Westerberg <mika.westerberg@iki.fi>
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/arm/mach-ep93xx/include')
-rw-r--r-- | arch/arm/mach-ep93xx/include/mach/ep93xx_spi.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/arch/arm/mach-ep93xx/include/mach/ep93xx_spi.h b/arch/arm/mach-ep93xx/include/mach/ep93xx_spi.h new file mode 100644 index 000000000000..0a37961b3453 --- /dev/null +++ b/arch/arm/mach-ep93xx/include/mach/ep93xx_spi.h | |||
@@ -0,0 +1,27 @@ | |||
1 | #ifndef __ASM_MACH_EP93XX_SPI_H | ||
2 | #define __ASM_MACH_EP93XX_SPI_H | ||
3 | |||
4 | struct spi_device; | ||
5 | |||
6 | /** | ||
7 | * struct ep93xx_spi_info - EP93xx specific SPI descriptor | ||
8 | * @num_chipselect: number of chip selects on this board, must be | ||
9 | * at least one | ||
10 | */ | ||
11 | struct ep93xx_spi_info { | ||
12 | int num_chipselect; | ||
13 | }; | ||
14 | |||
15 | /** | ||
16 | * struct ep93xx_spi_chip_ops - operation callbacks for SPI slave device | ||
17 | * @setup: setup the chip select mechanism | ||
18 | * @cleanup: cleanup the chip select mechanism | ||
19 | * @cs_control: control the device chip select | ||
20 | */ | ||
21 | struct ep93xx_spi_chip_ops { | ||
22 | int (*setup)(struct spi_device *spi); | ||
23 | void (*cleanup)(struct spi_device *spi); | ||
24 | void (*cs_control)(struct spi_device *spi, int value); | ||
25 | }; | ||
26 | |||
27 | #endif /* __ASM_MACH_EP93XX_SPI_H */ | ||