summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-04-02 06:51:49 -0400
committerMike Frysinger <vapier@gentoo.org>2009-04-02 06:51:55 -0400
commit2a6ce1115b3cbe746965cfa0058ce645b6c1ada1 (patch)
treeb0ac11bff5288b9376136a929991b6610083e1ce /drivers/mtd/spi
parent0dcdbb172c2fdf60c5c578980308b312fd56496f (diff)
downloadu-boot-imx-2a6ce1115b3cbe746965cfa0058ce645b6c1ada1.zip
u-boot-imx-2a6ce1115b3cbe746965cfa0058ce645b6c1ada1.tar.gz
u-boot-imx-2a6ce1115b3cbe746965cfa0058ce645b6c1ada1.tar.bz2
sf: stmicro: use common page timeout define
Signed-off-by: Mike Frysinger <vapier@gentoo.org> CC: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'drivers/mtd/spi')
-rw-r--r--drivers/mtd/spi/stmicro.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/spi/stmicro.c b/drivers/mtd/spi/stmicro.c
index e401cd0..b43e9f4 100644
--- 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;