8e7d4b189d51b96bd2c5b1eb3dfb46e3e91a86bb
2 * spi_gpio interface to platform code
4 * Copyright (c) 2008 Piotr Skamruk
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 #ifndef _LINUX_SPI_SPI_GPIO
11 #define _LINUX_SPI_SPI_GPIO
13 #include <linux/types.h>
14 #include <linux/spi/spi.h>
17 /** struct spi_gpio_platform_data - Data definitions for a SPI-GPIO device.
18 * This structure holds information about a GPIO-based SPI device.
20 * @pin_clk: The GPIO pin number of the CLOCK pin.
22 * @pin_miso: The GPIO pin number of the MISO pin.
24 * @pin_mosi: The GPIO pin number of the MOSI pin.
26 * @pin_cs: The GPIO pin number of the CHIPSELECT pin.
28 * @cs_activelow: If true, the chip is selected when the CS line is low.
30 * @no_spi_delay: If true, no delay is done in the lowlevel bitbanging.
31 * Note that doing no delay is not standards compliant,
32 * but it might be needed to speed up transfers on some
33 * slow embedded machines.
35 * @boardinfo_setup: This callback is called after the
36 * SPI master device was registered, but before the
37 * device is registered.
38 * @boardinfo_setup_data: Data argument passed to boardinfo_setup().
40 struct spi_gpio_platform_data
{
42 unsigned int pin_miso
;
43 unsigned int pin_mosi
;
47 int (*boardinfo_setup
)(struct spi_board_info
*bi
,
48 struct spi_master
*master
,
50 void *boardinfo_setup_data
;
53 #endif /* _LINUX_SPI_SPI_GPIO */
This page took 0.03944 seconds and 3 git commands to generate.