init-ld4.c 862 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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_ld4_init(const struct uniphier_board_data *bd)
  13. {
  14. uniphier_ld4_bcu_init(bd);
  15. uniphier_sbc_init_savepin(bd);
  16. uniphier_ld4_sbc_init(bd);
  17. support_card_reset();
  18. uniphier_ld4_dpll_init(bd);
  19. support_card_init();
  20. led_puts("L0");
  21. 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. {
  31. int res;
  32. res = uniphier_ld4_umc_init(bd);
  33. if (res < 0) {
  34. while (1)
  35. ;
  36. }
  37. }
  38. led_puts("L5");
  39. return 0;
  40. }