aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRichard Röjfors <richard.rojfors@mocean-labs.com>2009-11-13 06:28:49 -0500
committerGrant Likely <grant.likely@secretlab.ca>2009-12-08 20:48:14 -0500
commit86fc593599c11b62a11c85b4d7b709089df15c29 (patch)
treeaea08df21b6c9b7e6fe7b4a93c00ae56d8737140 /include
parentd5af91a1faca68e9a8cc493b85aa7b194b6128aa (diff)
xilinx_spi: Switch to iomem functions and support little endian.
This patch changes the out_(be)(8|16|32) and in_(be)(8|16|32) calls to 32 bits ioread/iowrite. The read and write function are attached to the internal struct as callbacks, callback is selected depending on endianess. This will also build on platforms not supporting the in/out calls for instance x86. 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')
-rw-r--r--include/linux/spi/xilinx_spi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/spi/xilinx_spi.h b/include/linux/spi/xilinx_spi.h
index 06df0aba3aee..a705ad85eebe 100644
--- a/include/linux/spi/xilinx_spi.h
+++ b/include/linux/spi/xilinx_spi.h
@@ -4,11 +4,13 @@
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 * @devices: Devices to add when the driver is probed. 8 * @devices: Devices to add when the driver is probed.
8 * @num_devices: Number of devices in the devices array. 9 * @num_devices: Number of devices in the devices array.
9 */ 10 */
10struct xspi_platform_data { 11struct xspi_platform_data {
11 u16 num_chipselect; 12 u16 num_chipselect;
13 bool little_endian;
12 struct spi_board_info *devices; 14 struct spi_board_info *devices;
13 u8 num_devices; 15 u8 num_devices;
14}; 16};