Skip to content
Snippets Groups Projects
Commit 47cc23cb authored by Stefan Roese's avatar Stefan Roese
Browse files

cfi_flash: Fix bug in flash_isset() to use correct 32bit function


This bug was detected on the LWMON5 target which has 2 Intel 16bit wide
flash chips connected to a 32bit wide port.

Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent 0dc80e27
No related branches found
No related tags found
No related merge requests found
......@@ -527,7 +527,7 @@ static int flash_isset (flash_info_t * info, flash_sect_t sect,
retval = ((flash_read16(addr) & cword.w) == cword.w);
break;
case FLASH_CFI_32BIT:
retval = ((flash_read16(addr) & cword.l) == cword.l);
retval = ((flash_read32(addr) & cword.l) == cword.l);
break;
case FLASH_CFI_64BIT:
retval = ((flash_read64(addr) & cword.ll) == cword.ll);
......
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