Lines Matching defs:spi
7 * This driver has been based on the spi-gpio.c:
17 #include <linux/spi/spi.h>
18 #include <linux/spi/spi_bitbang.h>
22 #include <linux/platform_data/spi-ath79.h>
24 #define DRV_NAME "ath79-spi"
59 static inline struct ath79_spi *ath79_spidev_to_sp(struct spi_device *spi)
61 return spi_master_get_devdata(spi->master);
70 static void ath79_spi_chipselect(struct spi_device *spi, int is_active)
72 struct ath79_spi *sp = ath79_spidev_to_sp(spi);
73 int cs_high = (spi->mode & SPI_CS_HIGH) ? is_active : !is_active;
74 u32 cs_bit = AR71XX_SPI_IOC_CS(spi->chip_select);
108 static u32 ath79_spi_txrx_mode0(struct spi_device *spi, unsigned int nsecs,
111 struct ath79_spi *sp = ath79_spidev_to_sp(spi);
147 dev_err(&pdev->dev, "failed to allocate spi master\n");
231 { .compatible = "qca,ar7100-spi", },