diff options
author | Andi Shyti <andi.shyti@samsung.com> | 2016-06-28 11:41:12 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-06-29 22:45:23 +0100 |
commit | a92e7c3d82a1313ab1954e5cdfd8f04efdb4ca78 (patch) | |
tree | ef099f7f2fdb25db02300b670414a5d94a29e91b /include/linux/platform_data/spi-s3c64xx.h | |
parent | aa4964c4eb3ed38666023bcb805403cb7cf2af63 (diff) | |
download | lwn-a92e7c3d82a1313ab1954e5cdfd8f04efdb4ca78.tar.gz lwn-a92e7c3d82a1313ab1954e5cdfd8f04efdb4ca78.zip |
spi: s3c64xx: consider the case when the CS line is not connected
When the CS line is not connected, it is not needed to enable or
disable the chip selection functionality from the s3c64xx
devices in order to perform a transfer.
Set the CS controller logically always enabled already during
initialization (by writing '0' in the S3C64XX_SPI_SLAVE_SEL
register) and never disable it.
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/platform_data/spi-s3c64xx.h')
-rw-r--r-- | include/linux/platform_data/spi-s3c64xx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/platform_data/spi-s3c64xx.h b/include/linux/platform_data/spi-s3c64xx.h index fb5625bcca9a..5c1e21c87270 100644 --- a/include/linux/platform_data/spi-s3c64xx.h +++ b/include/linux/platform_data/spi-s3c64xx.h @@ -38,6 +38,7 @@ struct s3c64xx_spi_csinfo { struct s3c64xx_spi_info { int src_clk_nr; int num_cs; + bool no_cs; int (*cfg_gpio)(void); dma_filter_fn filter; void *dma_tx; |