From: Bin Meng Date: Fri, 12 Dec 2014 14:06:15 +0000 (+0530) Subject: x86: ich-spi: Set the rx operation mode for ich 7 X-Git-Tag: v2025.01-rc5-pxa1908~14162^2~18 X-Git-Url: http://git.dujemihanovic.xyz/img/%7B%7B%20%24style.RelPermalink%20%7D%7D?a=commitdiff_plain;h=fa388bca3eb3f81f6412c69f0e15ab05ad4918a7;p=u-boot.git 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 Acked-by: Simon Glass Tested-by: Simon Glass Reviewed-by: Jagannadha Sutradharudu Teki --- diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c index c4d3a291e8..b356411c36 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; }