diff mbox

[U-Boot,2/5] spi/ich.c: Set the rx operation mode for ich 7

Message ID 1414071404-16267-1-git-send-email-bmeng.cn@gmail.com
State Superseded
Delegated to: Simon Glass
Headers show

Commit Message

Bin Meng Oct. 23, 2014, 1:36 p.m. UTC
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>
---
 drivers/spi/ich.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Simon Glass Oct. 24, 2014, 4:14 a.m. UTC | #1
On 23 October 2014 07:36, Bin Meng <bmeng.cn@gmail.com> wrote:
> 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 on link (ich9)

Tested-by: Simon Glass <sjg@chromium.org>
diff mbox

Patch

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;
 }