blob: 48d60a1c746a893bcde6e7ffe62a46b9455ba9ef [file] [log] [blame]
Hao Zhang8e697a02014-07-09 23:44:46 +03001/*
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, Ivanf2c13ba2014-09-29 22:17:22 +030013#include <asm/ti-common/keystone_net.h>
Cooper Jr., Franklin3413a582017-06-16 17:25:17 -050014#include "../common/board_detect.h"
Hao Zhang8e697a02014-07-09 23:44:46 +030015
16extern struct eth_priv_t eth_priv_cfg[];
17
Cooper Jr., Franklin105be1c2017-06-16 17:25:22 -050018#if defined(CONFIG_TI_I2C_BOARD_DETECT)
19static inline int board_is_k2g_gp(void)
20{
21 return board_ti_is("66AK2GGP");
22}
Rex Chang4df43d42017-12-28 20:39:59 +053023static inline int board_is_k2g_g1(void)
24{
25 return board_ti_is("66AK2GG1");
26}
Cooper Jr., Franklin105be1c2017-06-16 17:25:22 -050027static inline int board_is_k2g_ice(void)
28{
29 return board_ti_is("66AK2GIC");
30}
31#else
32static inline int board_is_k2g_gp(void)
33{
34 return false;
35}
36static inline int board_is_k2g_ice(void)
37{
38 return false;
39}
40#endif
41
Hao Zhang8e697a02014-07-09 23:44:46 +030042int get_num_eth_ports(void);
Hao Zhang95948202014-10-22 16:32:31 +030043void spl_init_keystone_plls(void);
Hao Zhang8e697a02014-07-09 23:44:46 +030044
45#endif