bf527-sdp.c 610 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * U-Boot - main board file
  3. *
  4. * Copyright (c) 2010 Analog Devices Inc.
  5. *
  6. * Licensed under the GPL-2 or later.
  7. */
  8. #include <common.h>
  9. #include <asm/blackfin.h>
  10. #include <asm/gpio.h>
  11. #include <asm/mach-common/bits/pll.h>
  12. int checkboard(void)
  13. {
  14. printf("Board: ADI BF527 SDP board\n");
  15. printf(" Support: http://blackfin.uclinux.org/\n");
  16. /* Enable access to parallel flash */
  17. gpio_request(GPIO_PG0, "parallel-flash");
  18. gpio_direction_output(GPIO_PG0, 0);
  19. return 0;
  20. }
  21. int misc_init_r(void)
  22. {
  23. /* CLKIN Buffer Output Enable */
  24. bfin_write_VR_CTL(bfin_read_VR_CTL() | CLKBUFOE);
  25. return 0;
  26. }