Lines Matching +full:spi +full:- +full:gpio
1 Cirrus EP93xx SPI controller driver HOWTO
4 ep93xx_spi driver brings SPI master support for EP93xx SPI controller. Chip
5 selects are implemented with GPIO lines.
8 not work correctly (it cannot be controlled by software). Use GPIO lines
15 arch/arm/mach-ep93xx/*.c). In this example we configure MMC over SPI through
16 this driver on TS-7260 board. You can adapt the code to suit your needs.
23 arch/arm/mach-ep93xx/ts72xx.c:
26 #include <linux/gpio.h>
27 #include <linux/spi/spi.h>
31 /* this is our GPIO line used for chip select */
34 static int ts72xx_mmc_spi_setup(struct spi_device *spi)
38 err = gpio_request(MMC_CHIP_SELECT_GPIO, spi->modalias);
47 static void ts72xx_mmc_spi_cleanup(struct spi_device *spi)
54 static void ts72xx_mmc_spi_cs_control(struct spi_device *spi, int value)