projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dcdbb1
)
sf: stmicro: use common page timeout define
author
Mike Frysinger
<vapier@gentoo.org>
Thu, 2 Apr 2009 10:51:49 +0000
(06:51 -0400)
committer
Mike Frysinger
<vapier@gentoo.org>
Thu, 2 Apr 2009 10:51:55 +0000
(06:51 -0400)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
CC: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
drivers/mtd/spi/stmicro.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/spi/stmicro.c
b/drivers/mtd/spi/stmicro.c
index e401cd07bc3c2355d7f3580906dc45ba8e061d66..b43e9f453ac602bb3c26732152ba976d81a91df7 100644
(file)
--- a/
drivers/mtd/spi/stmicro.c
+++ b/
drivers/mtd/spi/stmicro.c
@@
-295,8
+295,7
@@
int stmicro_erase(struct spi_flash *flash, u32 offset, size_t len)
break;
}
- /* Up to 2 seconds */
- ret = stmicro_wait_ready(flash, 2 * CONFIG_SYS_HZ);
+ ret = stmicro_wait_ready(flash, SPI_FLASH_PAGE_ERASE_TIMEOUT);
if (ret < 0) {
debug("SF: STMicro page erase timed out\n");
break;