board_postclk_init.c 656 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright (C) 2012-2014 Panasonic Corporation
  3. * Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #include <linux/compiler.h>
  8. #include <asm/arch/led.h>
  9. #include <asm/arch/board.h>
  10. void __weak bcu_init(void)
  11. {
  12. };
  13. void sbc_init(void);
  14. void sg_init(void);
  15. void pll_init(void);
  16. void pin_init(void);
  17. void clkrst_init(void);
  18. int board_postclk_init(void)
  19. {
  20. #ifdef CONFIG_SOC_INIT
  21. bcu_init();
  22. sbc_init();
  23. sg_init();
  24. uniphier_board_reset();
  25. pll_init();
  26. uniphier_board_init();
  27. led_write(B, 1, , );
  28. clkrst_init();
  29. led_write(B, 2, , );
  30. #endif
  31. pin_init();
  32. led_write(B, 3, , );
  33. return 0;
  34. }