flash.c 936 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * (C) Copyright 2000
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #include <common.h>
  8. #include <mpc8xx.h>
  9. flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];
  10. /*-----------------------------------------------------------------------
  11. */
  12. unsigned long flash_init (void)
  13. {
  14. /* All Speech Design board memory (DRAM and EPROM) initialisation is
  15. done in dram_init().
  16. The caller of ths function here expects the total size and will hang,
  17. if we give here back 0. So we return the EPROM size. */
  18. return (1024 * 1024); /* 1 MB */
  19. }
  20. /*-----------------------------------------------------------------------
  21. */
  22. void flash_print_info (flash_info_t *info)
  23. {
  24. printf("no FLASH memory in MPC823TS board\n");
  25. return;
  26. }
  27. int flash_erase (flash_info_t *info, int s_first, int s_last)
  28. {
  29. return 1;
  30. }
  31. /*-----------------------------------------------------------------------
  32. */