aboutsummaryrefslogtreecommitdiff
path: root/drivers/spi/ich.c
diff options
context:
space:
mode:
authorBin Meng2014-12-12 19:36:15 +0530
committerSimon Glass2014-12-13 15:08:04 -0700
commitfa388bca3eb3f81f6412c69f0e15ab05ad4918a7 (patch)
tree23e59f027abfca16d3d7391bff8a8d4ce64517da /drivers/spi/ich.c
parent54ba653ab63b31c8f5405fb0ee9dfba05cbb1521 (diff)
x86: ich-spi: Set the rx operation mode for ich 7
ICH 7 SPI controller only supports array read command (03h). Fast array read command (0Bh) is not supported. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Diffstat (limited to 'drivers/spi/ich.c')
-rw-r--r--drivers/spi/ich.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c
index c4d3a291e8d..b356411c36a 100644
--- a/drivers/spi/ich.c
+++ b/drivers/spi/ich.c
@@ -141,6 +141,10 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
ich->slave.max_write_size = ctlr.databytes;
ich->speed = max_hz;
+ /* ICH 7 SPI controller only supports array read command */
+ if (ctlr.ich_version == 7)
+ ich->slave.op_mode_rx = SPI_OPM_RX_AS;
+
return &ich->slave;
}