Commit fa388bca3eb3f81f6412c69f0e15ab05ad4918a7
Committed by
Simon Glass
1 parent
54ba653ab6
Exists in
v2017.01-smarct4x
and in
37 other branches
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>
Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff
drivers/spi/ich.c
... | ... | @@ -141,6 +141,10 @@ |
141 | 141 | ich->slave.max_write_size = ctlr.databytes; |
142 | 142 | ich->speed = max_hz; |
143 | 143 | |
144 | + /* ICH 7 SPI controller only supports array read command */ | |
145 | + if (ctlr.ich_version == 7) | |
146 | + ich->slave.op_mode_rx = SPI_OPM_RX_AS; | |
147 | + | |
144 | 148 | return &ich->slave; |
145 | 149 | } |
146 | 150 |