mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
x86: ich-spi: Set the tx operation mode for ich 7
ICH 7 SPI controller only supports byte program (02h) for SST flash. Word program (ADh) is not supported. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
This commit is contained in:
parent
fa388bca3e
commit
996467172e
1 changed files with 7 additions and 2 deletions
|
@ -141,9 +141,14 @@ 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 7 SPI controller only supports array read command
|
||||
* and byte program command for SST flash
|
||||
*/
|
||||
if (ctlr.ich_version == 7) {
|
||||
ich->slave.op_mode_rx = SPI_OPM_RX_AS;
|
||||
ich->slave.op_mode_tx = SPI_OPM_TX_BP;
|
||||
}
|
||||
|
||||
return &ich->slave;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue