RT-AC56 3.0.0.4.374.37 core
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / arch / arm / mach-ep93xx / include / mach / ep93xx_spi.h
blob0a37961b3453747d48aea9ee86b240ae3a7f266c
1 #ifndef __ASM_MACH_EP93XX_SPI_H
2 #define __ASM_MACH_EP93XX_SPI_H
4 struct spi_device;
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
11 struct ep93xx_spi_info {
12 int num_chipselect;
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
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);
27 #endif /* __ASM_MACH_EP93XX_SPI_H */