mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
x86: spi: Set maximum write size for ICH
This SPI controller can only write 64 bytes at a time. Add this restriction in so that 'sf write' works correct for blocks larger than 64 bytes. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
1e566bc6db
commit
5e6fb69778
1 changed files with 5 additions and 0 deletions
|
@ -147,6 +147,11 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Yes this controller can only write a small number of bytes at
|
||||
* once! The limit is typically 64 bytes.
|
||||
*/
|
||||
ich->slave.max_write_size = ctlr.databytes;
|
||||
ich->speed = max_hz;
|
||||
|
||||
return &ich->slave;
|
||||
|
|
Loading…
Reference in a new issue