README.cfi 965 B

1234567891011121314151617181920212223242526272829
  1. The common CFI driver provides this weak default implementation for
  2. flash_cmd_reset():
  3. void __flash_cmd_reset(flash_info_t *info)
  4. {
  5. /*
  6. * We do not yet know what kind of commandset to use, so we issue
  7. * the reset command in both Intel and AMD variants, in the hope
  8. * that AMD flash roms ignore the Intel command.
  9. */
  10. flash_write_cmd(info, 0, 0, AMD_CMD_RESET);
  11. flash_write_cmd(info, 0, 0, FLASH_CMD_RESET);
  12. }
  13. void flash_cmd_reset(flash_info_t *info)
  14. __attribute__((weak,alias("__flash_cmd_reset")));
  15. Some flash chips seems to have trouble with this reset sequence. In this case
  16. the board specific code can override this weak default version with a board
  17. specific function. For example the digsy_mtc board equipped with the M29W128GH
  18. from Numonyx needs this version to function properly:
  19. void flash_cmd_reset(flash_info_t *info)
  20. {
  21. flash_write_cmd(info, 0, 0, AMD_CMD_RESET);
  22. }
  23. see also:
  24. http://www.mail-archive.com/u-boot@lists.denx.de/msg24368.html