diff options
author | Franklin S Cooper Jr <fcooper@ti.com> | 2016-10-18 13:13:30 -0500 |
---|---|---|
committer | Lokesh Vutla <lokeshvutla@ti.com> | 2016-10-19 11:01:59 +0530 |
commit | 36c24011c66d9038e0c02c5eb26e7e1fd126d2d2 (patch) | |
tree | 5b4b32de8b9116cef286679999a7c61fbf32a961 /board | |
parent | 768cfe55825ab1e153c17d5cc79dde85d3f60472 (diff) | |
download | jacinto6evm-36c24011c66d9038e0c02c5eb26e7e1fd126d2d2.tar.gz |
HACK: ks2_evm: Add k2g gp evm detection
Add a function that can be used to determine if the board being ran on
is a K2G general purpose evm. Currently this is handled by configs which
means board detection is handled at build time rather than at runtime.
Signed-off-by: Franklin S Cooper Jr <fcooper@ti.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/ti/ks2_evm/board.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/ti/ks2_evm/board.h b/board/ti/ks2_evm/board.h index 2bbd79245b..21077fda3f 100644 --- a/board/ti/ks2_evm/board.h +++ b/board/ti/ks2_evm/board.h @@ -14,6 +14,15 @@ extern struct eth_priv_t eth_priv_cfg[]; +static inline int board_is_k2g_gp(void) +{ +#if defined(CONFIG_K2G_GP_EVM) && defined(CONFIG_SOC_K2G) + return true; +#else + return false; +#endif +} + int get_num_eth_ports(void); void spl_init_keystone_plls(void); |