* [U-Boot] [PATCH 2/5] spi/ich.c: Set the rx operation mode for ich 7
@ 2014-10-23 13:36 Bin Meng
2014-10-24 4:14 ` Simon Glass
0 siblings, 1 reply; 2+ messages in thread
From: Bin Meng @ 2014-10-23 13:36 UTC (permalink / raw)
To: u-boot
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(+)
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;
}
--
1.8.2.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH 2/5] spi/ich.c: Set the rx operation mode for ich 7
2014-10-23 13:36 [U-Boot] [PATCH 2/5] spi/ich.c: Set the rx operation mode for ich 7 Bin Meng
@ 2014-10-24 4:14 ` Simon Glass
0 siblings, 0 replies; 2+ messages in thread
From: Simon Glass @ 2014-10-24 4:14 UTC (permalink / raw)
To: u-boot
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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-10-24 4:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-23 13:36 [U-Boot] [PATCH 2/5] spi/ich.c: Set the rx operation mode for ich 7 Bin Meng
2014-10-24 4:14 ` Simon Glass
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.