blob: 250b649d459c6e96075c942d0e4f4d79d4659a8c [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Hao Zhang8e697a02014-07-09 23:44:46 +03002/*
3 * K2HK EVM : Board common header
4 *
5 * (C) Copyright 2014
6 * Texas Instruments Incorporated, <www.ti.com>
Hao Zhang8e697a02014-07-09 23:44:46 +03007 */
8
9#ifndef _KS2_BOARD
10#define _KS2_BOARD
11
Khoronzhuk, Ivanf2c13ba2014-09-29 22:17:22 +030012#include <asm/ti-common/keystone_net.h>
Cooper Jr., Franklin3413a582017-06-16 17:25:17 -050013#include "../common/board_detect.h"
Hao Zhang8e697a02014-07-09 23:44:46 +030014
15extern struct eth_priv_t eth_priv_cfg[];
16
Cooper Jr., Franklin105be1c2017-06-16 17:25:22 -050017#if defined(CONFIG_TI_I2C_BOARD_DETECT)
18static inline int board_is_k2g_gp(void)
19{
20 return board_ti_is("66AK2GGP");
21}
Rex Chang4df43d42017-12-28 20:39:59 +053022static inline int board_is_k2g_g1(void)
23{
24 return board_ti_is("66AK2GG1");
25}
Cooper Jr., Franklin105be1c2017-06-16 17:25:22 -050026static inline int board_is_k2g_ice(void)
27{
28 return board_ti_is("66AK2GIC");
29}
30#else
31static inline int board_is_k2g_gp(void)
32{
33 return false;
34}
35static inline int board_is_k2g_ice(void)
36{
37 return false;
38}
39#endif
40
Hao Zhang8e697a02014-07-09 23:44:46 +030041int get_num_eth_ports(void);
Hao Zhang95948202014-10-22 16:32:31 +030042void spl_init_keystone_plls(void);
Hao Zhang8e697a02014-07-09 23:44:46 +030043
44#endif