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