aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2013-01-14 15:27:00 -0500
committerGrant Likely <grant.likely@secretlab.ca>2013-02-05 09:44:12 -0500
commitc88dd349b5a83c9efa4030176a5184a9a1440475 (patch)
tree5608449beff27e337446d066d1b50e91e8777a54
parent9d15a3bac39e0a7945c463c26fd25c1c58280c68 (diff)
spi/spi-mpc512x-psc: init mode bits supported by the driver
The driver should setup mode bits it supports, otherwise adding an SPI device might fail even if the driver supports the requested SPI mode. Signed-off-by: Anatolij Gustschin <agust@denx.de> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
-rw-r--r--drivers/spi/spi-mpc512x-psc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-mpc512x-psc.c b/drivers/spi/spi-mpc512x-psc.c
index 88e544151f6f..89480b281d74 100644
--- a/drivers/spi/spi-mpc512x-psc.c
+++ b/drivers/spi/spi-mpc512x-psc.c
@@ -438,6 +438,7 @@ static int mpc512x_psc_spi_do_probe(struct device *dev, u32 regaddr,
438 master->num_chipselect = pdata->max_chipselect; 438 master->num_chipselect = pdata->max_chipselect;
439 } 439 }
440 440
441 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST;
441 master->setup = mpc512x_psc_spi_setup; 442 master->setup = mpc512x_psc_spi_setup;
442 master->transfer = mpc512x_psc_spi_transfer; 443 master->transfer = mpc512x_psc_spi_transfer;
443 master->cleanup = mpc512x_psc_spi_cleanup; 444 master->cleanup = mpc512x_psc_spi_cleanup;