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
8c25cf5e
Commit
8c25cf5e
authored
Oct 26, 2011
by
Sergei Poselenov
Browse files
RT #72064. Adedd support for the flash-based environment.
parent
d644116b
Changes
2
Hide whitespace changes
Inline
Side-by-side
drivers/mtd/cfi_flash.c
View file @
8c25cf5e
...
...
@@ -984,6 +984,13 @@ 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.
* 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
);
break
;
#ifdef CONFIG_FLASH_CFI_LEGACY
case
CFI_CMDSET_AMD_LEGACY
:
...
...
include/configs/stm3220g-eval.h
View file @
8c25cf5e
...
...
@@ -150,8 +150,11 @@
/*
* Store env in memory only
*/
#define CONFIG_ENV_IS_
NOWHERE
#define CONFIG_ENV_IS_
IN_FLASH
#define CONFIG_ENV_SIZE (4 * 1024)
#define CONFIG_ENV_ADDR CONFIG_SYS_FLASH_BANK1_BASE
#define CONFIG_INFERNO 1
#define CONFIG_ENV_OVERWRITE 1
#define CONFIG_ENV_OVERWRITE 1
/*
...
...
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