dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
George Shore 2010-01-21 11:40:48 +00:00 committed by Grant Likely
parent c587b6fa05
commit 83fe518a83
1 changed files with 4 additions and 0 deletions

View File

@ -172,6 +172,10 @@ static inline void spi_chip_sel(struct dw_spi *dws, u16 cs)
{
if (cs > dws->num_cs)
return;
if (dws->cs_control)
dws->cs_control(1);
dw_writel(dws, ser, 1 << cs);
}