From: Mike Frysinger Date: Fri, 20 Jan 2012 03:31:01 +0000 (-0500) Subject: sf: eeprom_m95xxx: set a sane default timeout X-Git-Tag: v2012.04-rc1~157^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8b463dab933f3bb1e4ec703a9e3cbfca2f031334;p=u-boot 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 --- diff --git a/drivers/mtd/spi/eeprom_m95xxx.c b/drivers/mtd/spi/eeprom_m95xxx.c index bae9445f8b..88b6c34349 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;