flash.c 581 B

1234567891011121314151617181920212223242526272829303132333435
  1. #include <common.h>
  2. #include <flash.h>
  3. flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
  4. unsigned long flash_init(void)
  5. {
  6. int i;
  7. for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; i++)
  8. {
  9. flash_info[i].flash_id = FLASH_UNKNOWN;
  10. flash_info[i].sector_count = 0;
  11. flash_info[i].size = 0;
  12. }
  13. return 1;
  14. }
  15. int flash_erase(flash_info_t *info, int s_first, int s_last)
  16. {
  17. return 1;
  18. }
  19. void flash_print_info(flash_info_t *info)
  20. {
  21. printf("No flashrom installed\n");
  22. }
  23. int write_buff (flash_info_t *info, uchar *src, ulong addr, ulong cnt)
  24. {
  25. return 0;
  26. }