bf533-ezkit.c 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * U-Boot - main board file
  3. *
  4. * Copyright (c) 2005-2008 Analog Devices Inc.
  5. *
  6. * (C) Copyright 2000-2004
  7. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  8. *
  9. * SPDX-License-Identifier: GPL-2.0+
  10. */
  11. #include <common.h>
  12. #include <netdev.h>
  13. #include "psd4256.h"
  14. #include "flash-defines.h"
  15. DECLARE_GLOBAL_DATA_PTR;
  16. int checkboard(void)
  17. {
  18. printf("Board: ADI BF533 EZ-Kit Lite board\n");
  19. printf(" Support: http://blackfin.uclinux.org/\n");
  20. return 0;
  21. }
  22. /* miscellaneous platform dependent initialisations */
  23. int misc_init_r(void)
  24. {
  25. /* Set direction bits for Video en/decoder reset as output */
  26. *(volatile unsigned char *)(CONFIG_SYS_FLASH1_BASE + PSD_PORTA_DIR) =
  27. PSDA_VDEC_RST | PSDA_VENC_RST;
  28. /* Deactivate Video en/decoder reset lines */
  29. *(volatile unsigned char *)(CONFIG_SYS_FLASH1_BASE + PSD_PORTA_DOUT) =
  30. PSDA_VDEC_RST | PSDA_VENC_RST;
  31. return 0;
  32. }
  33. #ifdef CONFIG_SMC91111
  34. int board_eth_init(bd_t *bis)
  35. {
  36. return smc91111_initialize(0, CONFIG_SMC91111_BASE);
  37. }
  38. #endif