board.h 794 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * K2HK EVM : Board common header
  4. *
  5. * (C) Copyright 2014
  6. * Texas Instruments Incorporated, <www.ti.com>
  7. */
  8. #ifndef _KS2_BOARD
  9. #define _KS2_BOARD
  10. #include <asm/ti-common/keystone_net.h>
  11. #include "../common/board_detect.h"
  12. extern struct eth_priv_t eth_priv_cfg[];
  13. #if defined(CONFIG_TI_I2C_BOARD_DETECT)
  14. static inline int board_is_k2g_gp(void)
  15. {
  16. return board_ti_is("66AK2GGP");
  17. }
  18. static inline int board_is_k2g_g1(void)
  19. {
  20. return board_ti_is("66AK2GG1");
  21. }
  22. static inline int board_is_k2g_ice(void)
  23. {
  24. return board_ti_is("66AK2GIC");
  25. }
  26. #else
  27. static inline int board_is_k2g_gp(void)
  28. {
  29. return false;
  30. }
  31. static inline int board_is_k2g_ice(void)
  32. {
  33. return false;
  34. }
  35. #endif
  36. int get_num_eth_ports(void);
  37. void spl_init_keystone_plls(void);
  38. #endif