mpc52xx_spi: add missing mode_bits definition
V2 changes: * remove CS_HIGH mode Signed-off-by: Luotao Fu <l.fu@pengutronix.de> Acked-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
Родитель
4a495b1c43
Коммит
d65aea99bd
|
@ -430,6 +430,8 @@ static int __devinit mpc52xx_spi_probe(struct of_device *op,
|
||||||
master->num_chipselect = 1;
|
master->num_chipselect = 1;
|
||||||
master->setup = mpc52xx_spi_setup;
|
master->setup = mpc52xx_spi_setup;
|
||||||
master->transfer = mpc52xx_spi_transfer;
|
master->transfer = mpc52xx_spi_transfer;
|
||||||
|
master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST;
|
||||||
|
|
||||||
dev_set_drvdata(&op->dev, master);
|
dev_set_drvdata(&op->dev, master);
|
||||||
|
|
||||||
ms = spi_master_get_devdata(master);
|
ms = spi_master_get_devdata(master);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче