init-pro4.c 808 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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_pro4_init(const struct uniphier_board_data *bd)
  13. {
  14. uniphier_sbc_init_savepin(bd);
  15. support_card_reset();
  16. uniphier_pro4_dpll_init(bd);
  17. support_card_init();
  18. led_puts("L0");
  19. memconf_init(bd);
  20. led_puts("L1");
  21. uniphier_ld4_early_clk_init(bd);
  22. led_puts("L2");
  23. led_puts("L3");
  24. #ifdef CONFIG_SPL_SERIAL_SUPPORT
  25. preloader_console_init();
  26. #endif
  27. led_puts("L4");
  28. {
  29. int res;
  30. res = uniphier_pro4_umc_init(bd);
  31. if (res < 0) {
  32. while (1)
  33. ;
  34. }
  35. }
  36. led_puts("L5");
  37. return 0;
  38. }