spl.c 797 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * Copyright (C) 2013-2015 Panasonic Corporation
  3. * Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #include <common.h>
  8. #include <spl.h>
  9. #include <linux/compiler.h>
  10. #include <mach/led.h>
  11. #include <mach/board.h>
  12. void __weak bcu_init(void)
  13. {
  14. };
  15. void sbc_init(void);
  16. void sg_init(void);
  17. void pll_init(void);
  18. void pin_init(void);
  19. void clkrst_init(void);
  20. int umc_init(void);
  21. void enable_dpll_ssc(void);
  22. void spl_board_init(void)
  23. {
  24. bcu_init();
  25. sbc_init();
  26. sg_init();
  27. uniphier_board_reset();
  28. pll_init();
  29. uniphier_board_init();
  30. led_write(L, 0, , );
  31. clkrst_init();
  32. led_write(L, 1, , );
  33. {
  34. int res;
  35. res = umc_init();
  36. if (res < 0) {
  37. while (1)
  38. ;
  39. }
  40. }
  41. led_write(L, 2, , );
  42. enable_dpll_ssc();
  43. led_write(L, 3, , );
  44. }