Skip to content
Snippets Groups Projects
Commit 45d65b7f authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

Merge branch 'master' of git://www.denx.de/git/u-boot-cfi-flash

parents 239c8858 1ba639da
No related branches found
No related tags found
No related merge requests found
...@@ -1538,7 +1538,12 @@ static int __flash_detect_cfi (flash_info_t * info, struct cfi_qry *qry) ...@@ -1538,7 +1538,12 @@ static int __flash_detect_cfi (flash_info_t * info, struct cfi_qry *qry)
{ {
int cfi_offset; int cfi_offset;
flash_write_cmd (info, 0, 0, info->cmd_reset); /* We do not yet know what kind of commandset to use, so we issue
the reset command in both Intel and AMD variants, in the hope
that AMD flash roms ignore the Intel command. */
flash_write_cmd (info, 0, 0, AMD_CMD_RESET);
flash_write_cmd (info, 0, 0, FLASH_CMD_RESET);
for (cfi_offset=0; for (cfi_offset=0;
cfi_offset < sizeof(flash_offset_cfi) / sizeof(uint); cfi_offset < sizeof(flash_offset_cfi) / sizeof(uint);
cfi_offset++) { cfi_offset++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment