init-ph1-ld4.c 771 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Copyright (C) 2013-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 ph1_ld4_init(const struct uniphier_board_data *bd)
  11. {
  12. ph1_ld4_bcu_init(bd);
  13. ph1_ld4_sbc_init(bd);
  14. support_card_reset();
  15. ph1_ld4_pll_init(bd);
  16. support_card_init();
  17. led_puts("L0");
  18. memconf_init(bd);
  19. led_puts("L1");
  20. ph1_ld4_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. {
  28. int res;
  29. res = ph1_ld4_umc_init(bd);
  30. if (res < 0) {
  31. while (1)
  32. ;
  33. }
  34. }
  35. led_puts("L5");
  36. ph1_ld4_enable_dpll_ssc(bd);
  37. led_puts("L6");
  38. return 0;
  39. }