aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/spi
diff options
context:
space:
mode:
authorRichard Röjfors <richard.rojfors@mocean-labs.com>2009-11-13 06:28:55 -0500
committerGrant Likely <grant.likely@secretlab.ca>2009-12-08 20:48:14 -0500
commitc9da2e125588677d74324df5088149063d578e8f (patch)
treeadafee69c0b90867809fd806b4843abbbab6f9b9 /include/linux/spi
parent86fc593599c11b62a11c85b4d7b709089df15c29 (diff)
xilinx_spi: add support for the DS570 IP.
This patch adds in support for the DS570 IP. It's register compatible with the DS464, but adds support for 8/16/32 SPI. The 8/16/32 support is added by attaching callbacks reading/writing the proper amount of data. To indicate to the driver which amount of bits to use a new field is introduced in the platform data struct. Acked-by: Grant Likely <grant.likely@secretlab.ca> Tested-by: John Linn <John.Linn@xilinx.com> Signed-off-by: Richard Röjfors <richard.rojfors@mocean-labs.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/linux/spi')
-rw-r--r--include/linux/spi/xilinx_spi.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/spi/xilinx_spi.h b/include/linux/spi/xilinx_spi.h
index a705ad85eebe..6f17278810b0 100644
--- a/include/linux/spi/xilinx_spi.h
+++ b/include/linux/spi/xilinx_spi.h
@@ -3,14 +3,16 @@
3 3
4/** 4/**
5 * struct xspi_platform_data - Platform data of the Xilinx SPI driver 5 * struct xspi_platform_data - Platform data of the Xilinx SPI driver
6 * @num_chipselect: Number of chip select by the IP 6 * @num_chipselect: Number of chip select by the IP.
7 * @little_endian If registers should be accessed little endian or not 7 * @little_endian: If registers should be accessed little endian or not.
8 * @bits_per_word: Number of bits per word.
8 * @devices: Devices to add when the driver is probed. 9 * @devices: Devices to add when the driver is probed.
9 * @num_devices: Number of devices in the devices array. 10 * @num_devices: Number of devices in the devices array.
10 */ 11 */
11struct xspi_platform_data { 12struct xspi_platform_data {
12 u16 num_chipselect; 13 u16 num_chipselect;
13 bool little_endian; 14 bool little_endian;
15 u8 bits_per_word;
14 struct spi_board_info *devices; 16 struct spi_board_info *devices;
15 u8 num_devices; 17 u8 num_devices;
16}; 18};