diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-01-19 22:31:01 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-02-12 15:18:28 -0500 |
commit | 8b463dab933f3bb1e4ec703a9e3cbfca2f031334 (patch) | |
tree | b82029bd19d64640bd5b9b3b3144b21fc234c743 /drivers/mtd/spi | |
parent | a1f77b696dfd4b5cb0f525dd8bc0e7afb4abc343 (diff) | |
download | u-boot-imx-8b463dab933f3bb1e4ec703a9e3cbfca2f031334.zip u-boot-imx-8b463dab933f3bb1e4ec703a9e3cbfca2f031334.tar.gz u-boot-imx-8b463dab933f3bb1e4ec703a9e3cbfca2f031334.tar.bz2 |
sf: eeprom_m95xxx: set a sane default timeout
Every board currently defines this to the same value, so just default
to that to avoid having to make everyone do the same thing.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'drivers/mtd/spi')
-rw-r--r-- | drivers/mtd/spi/eeprom_m95xxx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mtd/spi/eeprom_m95xxx.c b/drivers/mtd/spi/eeprom_m95xxx.c index bae9445..88b6c34 100644 --- a/drivers/mtd/spi/eeprom_m95xxx.c +++ b/drivers/mtd/spi/eeprom_m95xxx.c @@ -37,6 +37,10 @@ #define CONFIG_DEFAULT_SPI_MODE SPI_MODE_0 #endif +#ifndef CONFIG_SYS_SPI_WRITE_TOUT +#define CONFIG_SYS_SPI_WRITE_TOUT (5 * CONFIG_SYS_HZ) +#endif + ssize_t spi_read(uchar *addr, int alen, uchar *buffer, int len) { struct spi_slave *slave; |