Hao Zhang | 8e697a0 | 2014-07-09 23:44:46 +0300 | [diff] [blame] | 1 | /* |
| 2 | * K2HK EVM : Board common header |
| 3 | * |
| 4 | * (C) Copyright 2014 |
| 5 | * Texas Instruments Incorporated, <www.ti.com> |
| 6 | * |
| 7 | * SPDX-License-Identifier: GPL-2.0+ |
| 8 | */ |
| 9 | |
| 10 | #ifndef _KS2_BOARD |
| 11 | #define _KS2_BOARD |
| 12 | |
Khoronzhuk, Ivan | f2c13ba | 2014-09-29 22:17:22 +0300 | [diff] [blame] | 13 | #include <asm/ti-common/keystone_net.h> |
Cooper Jr., Franklin | 3413a58 | 2017-06-16 17:25:17 -0500 | [diff] [blame] | 14 | #include "../common/board_detect.h" |
Hao Zhang | 8e697a0 | 2014-07-09 23:44:46 +0300 | [diff] [blame] | 15 | |
| 16 | extern struct eth_priv_t eth_priv_cfg[]; |
| 17 | |
Cooper Jr., Franklin | 105be1c | 2017-06-16 17:25:22 -0500 | [diff] [blame] | 18 | #if defined(CONFIG_TI_I2C_BOARD_DETECT) |
| 19 | static inline int board_is_k2g_gp(void) |
| 20 | { |
| 21 | return board_ti_is("66AK2GGP"); |
| 22 | } |
| 23 | static inline int board_is_k2g_ice(void) |
| 24 | { |
| 25 | return board_ti_is("66AK2GIC"); |
| 26 | } |
| 27 | #else |
| 28 | static inline int board_is_k2g_gp(void) |
| 29 | { |
| 30 | return false; |
| 31 | } |
| 32 | static inline int board_is_k2g_ice(void) |
| 33 | { |
| 34 | return false; |
| 35 | } |
| 36 | #endif |
| 37 | |
Hao Zhang | 8e697a0 | 2014-07-09 23:44:46 +0300 | [diff] [blame] | 38 | int get_num_eth_ports(void); |
Hao Zhang | 9594820 | 2014-10-22 16:32:31 +0300 | [diff] [blame] | 39 | void spl_init_keystone_plls(void); |
Hao Zhang | 8e697a0 | 2014-07-09 23:44:46 +0300 | [diff] [blame] | 40 | |
| 41 | #endif |