diff mbox

[U-Boot,v2,5/6] x86: ich-spi: Set the rx operation mode for ich 7

Message ID 1418393176-16002-6-git-send-email-jagannadh.teki@gmail.com
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Jagan Teki Dec. 12, 2014, 2:06 p.m. UTC
From: Bin Meng <bmeng.cn@gmail.com>

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>
---
 drivers/spi/ich.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Simon Glass Dec. 14, 2014, 5:36 a.m. UTC | #1
On 12 December 2014 at 07:06, Jagannadha Sutradharudu Teki
<jagannadh.teki@gmail.com> wrote:
> From: Bin Meng <bmeng.cn@gmail.com>
>
> 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>
> ---
>  drivers/spi/ich.c | 4 ++++
>  1 file changed, 4 insertions(+)

Applied to u-boot-x86, thanks!
diff mbox

Patch

diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c
index f5c6f3e..0ef8bd4 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;
 }