init-ld11.c 826 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * Copyright (C) 2016 Socionext Inc.
  3. * Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #include <common.h>
  8. #include <spl.h>
  9. #include "../init.h"
  10. #include "../micro-support-card.h"
  11. int uniphier_ld11_init(const struct uniphier_board_data *bd)
  12. {
  13. uniphier_sbc_init_savepin(bd);
  14. uniphier_pxs2_sbc_init(bd);
  15. uniphier_ld20_early_pin_init(bd);
  16. support_card_reset();
  17. support_card_init();
  18. led_puts("L0");
  19. memconf_init(bd);
  20. led_puts("L1");
  21. uniphier_ld11_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_ld11_umc_init(bd);
  31. if (res < 0) {
  32. while (1)
  33. ;
  34. }
  35. }
  36. led_puts("L5");
  37. dcache_disable();
  38. led_puts("L6");
  39. return 0;
  40. }