init-sld3.c 776 B

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