Lines Matching refs:spi
1 /* linux/drivers/spi/spi_s3c24xx_gpio.c
22 #include <linux/spi/spi.h>
23 #include <linux/spi/spi_bitbang.h>
26 #include <mach/spi-gpio.h>
36 static inline struct s3c2410_spigpio *spidev_to_sg(struct spi_device *spi)
38 return spi_master_get_devdata(spi->master);
64 static u32 s3c2410_spigpio_txrx_mode0(struct spi_device *spi,
67 return bitbang_txrx_be_cpha0(spi, nsecs, 0, 0, word, bits);
70 static u32 s3c2410_spigpio_txrx_mode1(struct spi_device *spi,
73 return bitbang_txrx_be_cpha1(spi, nsecs, 0, 0, word, bits);
76 static u32 s3c2410_spigpio_txrx_mode2(struct spi_device *spi,
79 return bitbang_txrx_be_cpha0(spi, nsecs, 1, 0, word, bits);
82 static u32 s3c2410_spigpio_txrx_mode3(struct spi_device *spi,
85 return bitbang_txrx_be_cpha1(spi, nsecs, 1, 0, word, bits);
106 dev_err(&dev->dev, "failed to allocate spi master\n");
118 /* setup spi bitbang adaptor */
129 /* set state of spi pins, always assume that the clock is