]> git.sur5r.net Git - u-boot/commitdiff
sf: eeprom_m95xxx: set a sane default timeout
authorMike Frysinger <vapier@gentoo.org>
Fri, 20 Jan 2012 03:31:01 +0000 (22:31 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 12 Feb 2012 20:18:28 +0000 (15:18 -0500)
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>
drivers/mtd/spi/eeprom_m95xxx.c

index bae9445f8ba7b1f8fef2bd1d1b5aab59bd7d00e4..88b6c343498375a2e9a28cb3864c41bc76c87c95 100644 (file)
 #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;