Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sami Nurmenniemi
u-boot-stm32
Commits
692e8ab3
Commit
692e8ab3
authored
Nov 11, 2011
by
Sergei Poselenov
Browse files
RT #72064. Added udelay(100) before checking the status of the write op.
parent
dcde2a00
Changes
1
Hide whitespace changes
Inline
Side-by-side
drivers/mtd/cfi_flash.c
View file @
692e8ab3
...
...
@@ -752,6 +752,10 @@ static int flash_write_cfiword (flash_info_t * info, ulong dest,
if
(
!
sect_found
)
sect
=
find_sector
(
info
,
dest
);
#ifdef CONFIG_SYS_STM32
/* FIXME: remove this workaround for ST-MEM */
udelay
(
100
);
#endif
return
flash_full_status_check
(
info
,
sect
,
info
->
write_tout
,
"write"
);
}
...
...
@@ -984,13 +988,16 @@ int flash_erase (flash_info_t * info, int s_first, int s_last)
flash_unlock_seq
(
info
,
sect
);
flash_write_cmd
(
info
,
sect
,
0
,
AMD_CMD_ERASE_SECTOR
);
/* Wait before checking the status.
#ifdef CONFIG_SYS_STM32
/* FIXME: remove this workaround for ST-MEM.
* Wait before checking the status.
* This is added after the similar delay in
* linux/drivers/mtd/chips/cfi_cmdset_0002.c:do_erase_oneblock().
* FIXME: why erase_blk_tout is so big, vs to
* the value in the Linux mtd driver?
*/
udelay
(
500000
);
#endif
break
;
#ifdef CONFIG_FLASH_CFI_LEGACY
case
CFI_CMDSET_AMD_LEGACY
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment