diff options
author | George Shore <george@georgeshore.com> | 2010-01-21 06:40:48 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-01-21 09:24:29 -0500 |
commit | 83fe518a839e317480e50a138ef4acd73510d7ce (patch) | |
tree | a13e5fba61277441066aaf371cd378af4149ac8a /include | |
parent | c587b6fa05106606053fc5e8e344f07cd34ace23 (diff) |
spi/dw_spi: enable platform specific chipselect.
The driver core allows for a platform-specific chipselect assert/deassert
function, however the chipselect function in the core doesn't take advantage
of this fact.
This enables the use of a custom function, should it be defined.
Signed-off-by: George Shore <george@georgeshore.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/spi/dw_spi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/spi/dw_spi.h b/include/linux/spi/dw_spi.h index 1a127a31e017..cc813f95a2f2 100644 --- a/include/linux/spi/dw_spi.h +++ b/include/linux/spi/dw_spi.h | |||
@@ -172,6 +172,10 @@ static inline void spi_chip_sel(struct dw_spi *dws, u16 cs) | |||
172 | { | 172 | { |
173 | if (cs > dws->num_cs) | 173 | if (cs > dws->num_cs) |
174 | return; | 174 | return; |
175 | |||
176 | if (dws->cs_control) | ||
177 | dws->cs_control(1); | ||
178 | |||
175 | dw_writel(dws, ser, 1 << cs); | 179 | dw_writel(dws, ser, 1 << cs); |
176 | } | 180 | } |
177 | 181 | ||