init-pxs2.c 734 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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_pxs2_init(const struct uniphier_board_data *bd)
  11. {
  12. int ret;
  13. uniphier_sbc_init_savepin(bd);
  14. uniphier_pxs2_sbc_init(bd);
  15. support_card_reset();
  16. support_card_init();
  17. led_puts("L0");
  18. memconf_init(bd);
  19. uniphier_pxs2_memconf_init(bd);
  20. led_puts("L1");
  21. uniphier_pxs2_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. ret = uniphier_pxs2_umc_init(bd);
  29. if (ret)
  30. return ret;
  31. led_puts("L5");
  32. return 0;
  33. }