bf506f-ezkit.c 477 B

123456789101112131415161718192021222324252627
  1. /*
  2. * U-Boot - main board file
  3. *
  4. * Copyright (c) 2008-2010 Analog Devices Inc.
  5. *
  6. * Licensed under the GPL-2 or later.
  7. */
  8. #include <common.h>
  9. #include <asm/blackfin.h>
  10. int checkboard(void)
  11. {
  12. printf("Board: ADI BF506F EZ-Kit board\n");
  13. printf(" Support: http://blackfin.uclinux.org/\n");
  14. return 0;
  15. }
  16. int board_early_init_f(void)
  17. {
  18. bfin_write_EBIU_MODE(1);
  19. SSYNC();
  20. bfin_write_FLASH_CONTROL_CLEAR(1);
  21. udelay(1);
  22. bfin_write_FLASH_CONTROL_SET(1);
  23. return 0;
  24. }