ebi.c 561 B

12345678910111213141516171819202122232425262728293031323334
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * (C) Copyright 2008 Stefan Roese <sr@denx.de>, DENX Software Engineering
  4. *
  5. * Copyright (C) 2006 Micronas GmbH
  6. */
  7. #include <common.h>
  8. #include <asm/io.h>
  9. #include "vct.h"
  10. int ebi_initialize(void)
  11. {
  12. #if defined(CONFIG_VCT_NOR)
  13. if (ebi_init_nor_flash())
  14. return -1;
  15. #endif
  16. #if defined(CONFIG_VCT_ONENAND)
  17. if (ebi_init_onenand())
  18. return -1;
  19. #endif
  20. #if defined(CONFIG_DRIVER_SMC911X)
  21. if (ebi_init_smc911x())
  22. return -1;
  23. #endif
  24. reg_write(EBI_CTRL_SIG_ACTLV(EBI_BASE), 0x00004100);
  25. ebi_wait();
  26. return 0;
  27. }