Skip to content
Snippets Groups Projects
Select Git revision
  • fb8c061ea05fc68d37e2a8b9f8c949d76c8d71a8
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
8 results

cfi_flash.c

Forked from Reform / reform-boundary-uboot
Source project has a limited visibility.
  • Stefan Roese's avatar
    fb8c061e
    cfi-flash: Fix problem in flash_toggle(), busy was not detected reliably · fb8c061e
    Stefan Roese authored
    
    This patch simplifies flash_toggle() (AMD commandset), which is used to
    detect if a FLASH device is still busy with erase/program operations. On
    800MHz Canyonlands/Glacier boards (460EX/GT) the current implementation
    did not detect the busy state reliably, resulting in non erased sectors
    etc. This patch now simplifies this function by "just" comparing the
    complete data-word instead of ANDing it with the command-word (0x40)
    before the compatison. It is done the same way in the Linux implementation
    chip_ready() in cfi_cmdset_0002.c.
    
    Signed-off-by: default avatarStefan Roese <sr@denx.de>
    fb8c061e
    History
    cfi-flash: Fix problem in flash_toggle(), busy was not detected reliably
    Stefan Roese authored
    
    This patch simplifies flash_toggle() (AMD commandset), which is used to
    detect if a FLASH device is still busy with erase/program operations. On
    800MHz Canyonlands/Glacier boards (460EX/GT) the current implementation
    did not detect the busy state reliably, resulting in non erased sectors
    etc. This patch now simplifies this function by "just" comparing the
    complete data-word instead of ANDing it with the command-word (0x40)
    before the compatison. It is done the same way in the Linux implementation
    chip_ready() in cfi_cmdset_0002.c.
    
    Signed-off-by: default avatarStefan Roese <sr@denx.de>