2014-07-09 20:44:46 +00:00
|
|
|
/*
|
|
|
|
* K2HK EVM : Board common header
|
|
|
|
*
|
|
|
|
* (C) Copyright 2014
|
|
|
|
* Texas Instruments Incorporated, <www.ti.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _KS2_BOARD
|
|
|
|
#define _KS2_BOARD
|
|
|
|
|
2014-09-29 19:17:22 +00:00
|
|
|
#include <asm/ti-common/keystone_net.h>
|
2017-06-16 22:25:17 +00:00
|
|
|
#include "../common/board_detect.h"
|
2014-07-09 20:44:46 +00:00
|
|
|
|
|
|
|
extern struct eth_priv_t eth_priv_cfg[];
|
|
|
|
|
2017-06-16 22:25:22 +00:00
|
|
|
#if defined(CONFIG_TI_I2C_BOARD_DETECT)
|
|
|
|
static inline int board_is_k2g_gp(void)
|
|
|
|
{
|
|
|
|
return board_ti_is("66AK2GGP");
|
|
|
|
}
|
2017-12-28 15:09:59 +00:00
|
|
|
static inline int board_is_k2g_g1(void)
|
|
|
|
{
|
|
|
|
return board_ti_is("66AK2GG1");
|
|
|
|
}
|
2017-06-16 22:25:22 +00:00
|
|
|
static inline int board_is_k2g_ice(void)
|
|
|
|
{
|
|
|
|
return board_ti_is("66AK2GIC");
|
|
|
|
}
|
|
|
|
#else
|
|
|
|
static inline int board_is_k2g_gp(void)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
static inline int board_is_k2g_ice(void)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2014-07-09 20:44:46 +00:00
|
|
|
int get_num_eth_ports(void);
|
2014-10-22 13:32:31 +00:00
|
|
|
void spl_init_keystone_plls(void);
|
2014-07-09 20:44:46 +00:00
|
|
|
|
|
|
|
#endif
|