summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2014-12-12 19:36:15 +0530
committerSimon Glass <sjg@chromium.org>2014-12-13 15:08:04 -0700
commitfa388bca3eb3f81f6412c69f0e15ab05ad4918a7 (patch)
tree23e59f027abfca16d3d7391bff8a8d4ce64517da /drivers
parent54ba653ab63b31c8f5405fb0ee9dfba05cbb1521 (diff)
downloadu-boot-imx-fa388bca3eb3f81f6412c69f0e15ab05ad4918a7.zip
u-boot-imx-fa388bca3eb3f81f6412c69f0e15ab05ad4918a7.tar.gz
u-boot-imx-fa388bca3eb3f81f6412c69f0e15ab05ad4918a7.tar.bz2
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')
-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 c4d3a29..b356411 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;
}