diff options
author | Tomoya MORINAGA <tomoya.rohm@gmail.com> | 2011-12-09 13:13:28 +0900 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2012-05-20 22:56:44 +0100 |
commit | 8ec5bd153809968f7e10fe58079fa2a1ed476d57 (patch) | |
tree | 38f7a4d02b64339446b3b44a9949683c2094fb94 /drivers/spi | |
parent | 958bb6de7a6ba061024629488418dc23d160fde9 (diff) | |
download | kernel_samsung_smdk4412-8ec5bd153809968f7e10fe58079fa2a1ed476d57.zip kernel_samsung_smdk4412-8ec5bd153809968f7e10fe58079fa2a1ed476d57.tar.gz kernel_samsung_smdk4412-8ec5bd153809968f7e10fe58079fa2a1ed476d57.tar.bz2 |
spi-topcliff-pch: supports a spi mode setup and bit order setup by IO control
commit f258b44e22e07f5e98ac2260c70acff5784791b6 upstream.
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-topcliff-pch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-topcliff-pch.c b/drivers/spi/spi-topcliff-pch.c index 1e60827..0c4efed 100644 --- a/drivers/spi/spi-topcliff-pch.c +++ b/drivers/spi/spi-topcliff-pch.c @@ -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; |