spi-topcliff-pch: supports a spi mode setup and bit order setup by IO control
authorTomoya MORINAGA <tomoya.rohm@gmail.com>
Fri, 9 Dec 2011 04:13:28 +0000 (13:13 +0900)
committerGrant Likely <grant.likely@secretlab.ca>
Sat, 10 Mar 2012 03:57:28 +0000 (20:57 -0700)
This patch supports a spi mode setup and bit order setup by IO control.
    spi mode:     mode 0 to mode 3
    bit order:    LSB first, MSB first

Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi-topcliff-pch.c

index 4fdb83a765d8aea91f34a2416890ac372199afad..5a477e91426f874bf8313dc823dc61dcebfaadd3 100644 (file)
@@ -1434,6 +1434,7 @@ static int __devinit pch_spi_pd_probe(struct platform_device *plat_dev)
        master->num_chipselect = PCH_MAX_CS;
        master->setup = pch_spi_setup;
        master->transfer = pch_spi_transfer;
+       master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST;
 
        data->board_dat = board_dat;
        data->plat_dev = plat_dev;
This page took 0.0629690000000001 seconds and 5 git commands to generate.