blob: 93fc3887f40fd04b09a36d244d596b037aec574d [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Hao Zhange5951072014-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 Zhange5951072014-07-09 23:44:46 +03007 */
8
9#ifndef _KS2_BOARD
10#define _KS2_BOARD
11
Khoronzhuk, Ivan0935cac2014-09-29 22:17:22 +030012#include <asm/ti-common/keystone_net.h>
Cooper Jr., Frankline820f522017-06-16 17:25:17 -050013#include "../common/board_detect.h"
Hao Zhange5951072014-07-09 23:44:46 +030014
Cooper Jr., Frankline6e24352017-06-16 17:25:22 -050015#if defined(CONFIG_TI_I2C_BOARD_DETECT)
16static inline int board_is_k2g_gp(void)
17{
18 return board_ti_is("66AK2GGP");
19}
Rex Chang4849d952017-12-28 20:39:59 +053020static inline int board_is_k2g_g1(void)
21{
22 return board_ti_is("66AK2GG1");
23}
Cooper Jr., Frankline6e24352017-06-16 17:25:22 -050024static inline int board_is_k2g_ice(void)
25{
26 return board_ti_is("66AK2GIC");
27}
Lokesh Vutlad2aa5722020-12-17 22:58:07 +053028static inline int board_is_k2g_i1(void)
29{
30 return board_ti_is("66AK2GI1");
31}
Cooper Jr., Frankline6e24352017-06-16 17:25:22 -050032#else
33static inline int board_is_k2g_gp(void)
34{
35 return false;
36}
37static inline int board_is_k2g_ice(void)
38{
39 return false;
40}
Lokesh Vutlad2aa5722020-12-17 22:58:07 +053041static inline int board_is_k2g_i1(void)
42{
43 return false;
44}
Cooper Jr., Frankline6e24352017-06-16 17:25:22 -050045#endif
46
Hao Zhang5ec66b12014-10-22 16:32:31 +030047void spl_init_keystone_plls(void);
Hao Zhange5951072014-07-09 23:44:46 +030048
49#endif