mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Merge branch 'spi-mcspi' into spi-next
This commit is contained in:
commit
170c2d0a87
3 changed files with 8 additions and 8 deletions
|
|
@ -765,7 +765,7 @@ static int omap2_mcspi_setup_transfer(struct spi_device *spi,
|
|||
/* standard 4-wire master mode: SCK, MOSI/out, MISO/in, nCS
|
||||
* REVISIT: this controller could support SPI_3WIRE mode.
|
||||
*/
|
||||
if (mcspi->pin_dir == MCSPI_PINDIR_D0_OUT_D1_IN) {
|
||||
if (mcspi->pin_dir == MCSPI_PINDIR_D0_IN_D1_OUT) {
|
||||
l &= ~OMAP2_MCSPI_CHCONF_IS;
|
||||
l &= ~OMAP2_MCSPI_CHCONF_DPE1;
|
||||
l |= OMAP2_MCSPI_CHCONF_DPE0;
|
||||
|
|
@ -1187,8 +1187,8 @@ static int __devinit omap2_mcspi_probe(struct platform_device *pdev)
|
|||
of_property_read_u32(node, "ti,spi-num-cs", &num_cs);
|
||||
master->num_chipselect = num_cs;
|
||||
master->bus_num = bus_num++;
|
||||
if (of_get_property(node, "ti,pindir-d0-in-d1-out", NULL))
|
||||
mcspi->pin_dir = MCSPI_PINDIR_D0_IN_D1_OUT;
|
||||
if (of_get_property(node, "ti,pindir-d0-out-d1-in", NULL))
|
||||
mcspi->pin_dir = MCSPI_PINDIR_D0_OUT_D1_IN;
|
||||
} else {
|
||||
pdata = pdev->dev.platform_data;
|
||||
master->num_chipselect = pdata->num_cs;
|
||||
|
|
|
|||
Loading…
Reference in a new issue