提交 2a6ce111 编写于 作者: M Mike Frysinger

sf: stmicro: use common page timeout define

Signed-off-by: NMike Frysinger <vapier@gentoo.org>
CC: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
上级 0dcdbb17
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册