board_early_init_f.c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /*
  2. * Copyright (C) 2012-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #include "init.h"
  7. #include "micro-support-card.h"
  8. #include "soc-info.h"
  9. int board_early_init_f(void)
  10. {
  11. led_puts("U0");
  12. switch (uniphier_get_soc_type()) {
  13. #if defined(CONFIG_ARCH_UNIPHIER_PH1_SLD3)
  14. case SOC_UNIPHIER_PH1_SLD3:
  15. ph1_sld3_pin_init();
  16. led_puts("U1");
  17. ph1_ld4_clk_init();
  18. break;
  19. #endif
  20. #if defined(CONFIG_ARCH_UNIPHIER_PH1_LD4)
  21. case SOC_UNIPHIER_PH1_LD4:
  22. ph1_ld4_pin_init();
  23. led_puts("U1");
  24. ph1_ld4_clk_init();
  25. break;
  26. #endif
  27. #if defined(CONFIG_ARCH_UNIPHIER_PH1_PRO4)
  28. case SOC_UNIPHIER_PH1_PRO4:
  29. ph1_pro4_pin_init();
  30. led_puts("U1");
  31. ph1_pro4_clk_init();
  32. break;
  33. #endif
  34. #if defined(CONFIG_ARCH_UNIPHIER_PH1_SLD8)
  35. case SOC_UNIPHIER_PH1_SLD8:
  36. ph1_sld8_pin_init();
  37. led_puts("U1");
  38. ph1_ld4_clk_init();
  39. break;
  40. #endif
  41. #if defined(CONFIG_ARCH_UNIPHIER_PH1_PRO5)
  42. case SOC_UNIPHIER_PH1_PRO5:
  43. ph1_pro5_pin_init();
  44. led_puts("U1");
  45. ph1_pro5_clk_init();
  46. break;
  47. #endif
  48. #if defined(CONFIG_ARCH_UNIPHIER_PROXSTREAM2)
  49. case SOC_UNIPHIER_PROXSTREAM2:
  50. proxstream2_pin_init();
  51. led_puts("U1");
  52. proxstream2_clk_init();
  53. break;
  54. #endif
  55. #if defined(CONFIG_ARCH_UNIPHIER_PH1_LD6B)
  56. case SOC_UNIPHIER_PH1_LD6B:
  57. ph1_ld6b_pin_init();
  58. led_puts("U1");
  59. proxstream2_clk_init();
  60. break;
  61. #endif
  62. default:
  63. break;
  64. }
  65. led_puts("U2");
  66. return 0;
  67. }