diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-25 18:38:03 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-25 18:38:03 -0500 |
commit | d7930c9ef9cc67044f5ddaac54d06ca22645a012 (patch) | |
tree | 32ec9ed98a7b5ff659de11886492b18abd421069 /include/linux | |
parent | b6d97026561a6ed6eed58428633a6bb4e1b78c57 (diff) | |
parent | 4f4517c45f325ba511458465430a52864a5d0d30 (diff) |
Merge branch 'next-spi' of git://git.secretlab.ca/git/linux-2.6
* 'next-spi' of git://git.secretlab.ca/git/linux-2.6: (31 commits)
spi: Correct SPI clock frequency setting in spi_mpc8xxx
spi/spi_s3c64xx.c: Fix continuation line formats
spi/dw_spi: Fix dw_spi_mmio to depend on HAVE_CLK
spi/dw_spi: Allow dw_spi.c to be a module
spi/dw_spi: mmio code style fixups
Memory-mapped dw_spi driver
spi/dw_spi: fix missing export of dw_spi_remove_host
spi/dw_spi: conditional transfer mode changes
spi/dw_spi: remove conditional from 'poll_transfer'.
spi/dw_spi: fixed a spelling typo in a warning message.
spi/dw_spi: add return value to empty mrst_spi_debugfs_init()
spi/dw_spi: enable platform specific chipselect.
spi/dw_spi: add a FIFO depth detection
spi/dw_spi: fix __init/__devinit section mismatch
spi: xilinx_spi: Fix up I/O routine wrapping bogosity.
spi/spi_imx: add device information by switching pr_debug() to dev_dbg()
spi: update MSIOF includes
spi/dw_spi: refine the IRQ mode working flow
spi/dw_spi: add a missed dw_spi_remove_host() in exit sequence
spi/dw_spi: bug fix in wait_till_not_busy()
...
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/spi/dw_spi.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/spi/dw_spi.h b/include/linux/spi/dw_spi.h index 51b3e771a9a3..cc813f95a2f2 100644 --- a/include/linux/spi/dw_spi.h +++ b/include/linux/spi/dw_spi.h | |||
@@ -90,6 +90,7 @@ struct dw_spi { | |||
90 | unsigned long paddr; | 90 | unsigned long paddr; |
91 | u32 iolen; | 91 | u32 iolen; |
92 | int irq; | 92 | int irq; |
93 | u32 fifo_len; /* depth of the FIFO buffer */ | ||
93 | u32 max_freq; /* max bus freq supported */ | 94 | u32 max_freq; /* max bus freq supported */ |
94 | 95 | ||
95 | u16 bus_num; | 96 | u16 bus_num; |
@@ -171,6 +172,10 @@ static inline void spi_chip_sel(struct dw_spi *dws, u16 cs) | |||
171 | { | 172 | { |
172 | if (cs > dws->num_cs) | 173 | if (cs > dws->num_cs) |
173 | return; | 174 | return; |
175 | |||
176 | if (dws->cs_control) | ||
177 | dws->cs_control(1); | ||
178 | |||
174 | dw_writel(dws, ser, 1 << cs); | 179 | dw_writel(dws, ser, 1 << cs); |
175 | } | 180 | } |
176 | 181 | ||