diff options
author | Richard Röjfors <richard.rojfors@mocean-labs.com> | 2009-11-13 12:28:55 +0100 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2009-12-08 18:48:14 -0700 |
commit | c9da2e125588677d74324df5088149063d578e8f (patch) | |
tree | adafee69c0b90867809fd806b4843abbbab6f9b9 /drivers/spi/xilinx_spi_of.c | |
parent | 86fc593599c11b62a11c85b4d7b709089df15c29 (diff) | |
download | kernel_samsung_smdk4412-c9da2e125588677d74324df5088149063d578e8f.zip kernel_samsung_smdk4412-c9da2e125588677d74324df5088149063d578e8f.tar.gz kernel_samsung_smdk4412-c9da2e125588677d74324df5088149063d578e8f.tar.bz2 |
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 'drivers/spi/xilinx_spi_of.c')
-rw-r--r-- | drivers/spi/xilinx_spi_of.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/xilinx_spi_of.c b/drivers/spi/xilinx_spi_of.c index 151aa13..71dc3ad 100644 --- a/drivers/spi/xilinx_spi_of.c +++ b/drivers/spi/xilinx_spi_of.c @@ -72,6 +72,7 @@ static int __devinit xilinx_spi_of_probe(struct of_device *ofdev, return -EINVAL; } pdata->num_chipselect = *prop; + pdata->bits_per_word = 8; master = xilinx_spi_init(&ofdev->dev, &r_mem, r_irq.start, -1); if (!master) return -ENODEV; |