diff options
author | Tom Rini <trini@konsulko.com> | 2022-08-04 16:53:39 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-08-04 16:54:01 -0400 |
commit | b8e09898919e23c5d7f1934be7bf9a3a6f0deb0e (patch) | |
tree | ba1c168b729947aec2a487791e5a26ce72da4282 /board/cobra5272/flash.c | |
parent | 62e6418031bed3671e57e63d49273e2739a82589 (diff) | |
parent | 78475d2572615471d3c047e61481a68859d0dd7f (diff) |
Merge branch '2022-08-04-Kconfig-migrations'
- Further migrations to Kconfig and associated dead code removal.
Diffstat (limited to 'board/cobra5272/flash.c')
-rw-r--r-- | board/cobra5272/flash.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/board/cobra5272/flash.c b/board/cobra5272/flash.c index 4337f4879d..5d15ed4e69 100644 --- a/board/cobra5272/flash.c +++ b/board/cobra5272/flash.c @@ -200,8 +200,8 @@ int flash_erase(flash_info_t *info, int s_first, int s_last) do { result = *addr; - /* check timeout */ - if (get_timer(start) > CONFIG_SYS_FLASH_ERASE_TOUT) { + /* check timeout, 1000ms */ + if (get_timer(start) > 1000) { MEM_FLASH_ADDR1 = CMD_READ_ARRAY; chip1 = TMO; break; @@ -289,8 +289,8 @@ static int write_word(flash_info_t *info, ulong dest, ulong data) do { result = *addr; - /* check timeout */ - if (get_timer(start) > CONFIG_SYS_FLASH_ERASE_TOUT) { + /* check timeout, 1000ms */ + if (get_timer(start) > 1000) { chip1 = ERR | TMO; break; } |