init-proxstream2.c 692 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (C) 2015 Masahiro Yamada <yamada.masahiro@socionext.com>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #include <common.h>
  7. #include <spl.h>
  8. #include "../init.h"
  9. #include "../micro-support-card.h"
  10. int proxstream2_init(const struct uniphier_board_data *bd)
  11. {
  12. int ret;
  13. proxstream2_sbc_init(bd);
  14. support_card_reset();
  15. support_card_init();
  16. led_puts("L0");
  17. memconf_init(bd);
  18. proxstream2_memconf_init(bd);
  19. led_puts("L1");
  20. proxstream2_early_clk_init(bd);
  21. led_puts("L2");
  22. led_puts("L3");
  23. #ifdef CONFIG_SPL_SERIAL_SUPPORT
  24. preloader_console_init();
  25. #endif
  26. led_puts("L4");
  27. ret = proxstream2_umc_init(bd);
  28. if (ret)
  29. return ret;
  30. led_puts("L5");
  31. return 0;
  32. }