init-pro5.c 642 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 uniphier_pro5_init(const struct uniphier_board_data *bd)
  11. {
  12. uniphier_sbc_init_savepin();
  13. support_card_reset();
  14. support_card_init();
  15. led_puts("L0");
  16. uniphier_memconf_2ch_init(bd);
  17. led_puts("L1");
  18. uniphier_sld3_early_clk_init();
  19. uniphier_pro5_dram_clk_init();
  20. led_puts("L2");
  21. led_puts("L3");
  22. #ifdef CONFIG_SPL_SERIAL_SUPPORT
  23. preloader_console_init();
  24. #endif
  25. led_puts("L4");
  26. led_puts("L5");
  27. return 0;
  28. }