[U-Boot] [PATCH 2/2] sf: eeprom_m95xxx: set a sane default timeout

Mike Frysinger vapier at gentoo.org
Tue Jan 31 19:15:51 CET 2012


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 at gentoo.org>
---
 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;
-- 
1.7.8.4



More information about the U-Boot mailing list