projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1f77b6
)
sf: eeprom_m95xxx: set a sane default timeout
author
Mike Frysinger
<vapier@gentoo.org>
Fri, 20 Jan 2012 03:31:01 +0000
(22:31 -0500)
committer
Mike 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
patch
|
blob
|
history
diff --git
a/drivers/mtd/spi/eeprom_m95xxx.c
b/drivers/mtd/spi/eeprom_m95xxx.c
index bae9445f8ba7b1f8fef2bd1d1b5aab59bd7d00e4..88b6c343498375a2e9a28cb3864c41bc76c87c95 100644
(file)
--- 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;