Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Hao Zhang | 8e697a0 | 2014-07-09 23:44:46 +0300 | [diff] [blame] | 2 | /* |
| 3 | * K2HK EVM : Board common header |
| 4 | * |
| 5 | * (C) Copyright 2014 |
| 6 | * Texas Instruments Incorporated, <www.ti.com> |
Hao Zhang | 8e697a0 | 2014-07-09 23:44:46 +0300 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef _KS2_BOARD |
| 10 | #define _KS2_BOARD |
| 11 | |
Khoronzhuk, Ivan | f2c13ba | 2014-09-29 22:17:22 +0300 | [diff] [blame] | 12 | #include <asm/ti-common/keystone_net.h> |
Cooper Jr., Franklin | 3413a58 | 2017-06-16 17:25:17 -0500 | [diff] [blame] | 13 | #include "../common/board_detect.h" |
Hao Zhang | 8e697a0 | 2014-07-09 23:44:46 +0300 | [diff] [blame] | 14 | |
Cooper Jr., Franklin | 105be1c | 2017-06-16 17:25:22 -0500 | [diff] [blame] | 15 | #if defined(CONFIG_TI_I2C_BOARD_DETECT) |
| 16 | static inline int board_is_k2g_gp(void) |
| 17 | { |
| 18 | return board_ti_is("66AK2GGP"); |
| 19 | } |
Rex Chang | 4df43d4 | 2017-12-28 20:39:59 +0530 | [diff] [blame] | 20 | static inline int board_is_k2g_g1(void) |
| 21 | { |
| 22 | return board_ti_is("66AK2GG1"); |
| 23 | } |
Cooper Jr., Franklin | 105be1c | 2017-06-16 17:25:22 -0500 | [diff] [blame] | 24 | static inline int board_is_k2g_ice(void) |
| 25 | { |
| 26 | return board_ti_is("66AK2GIC"); |
| 27 | } |
| 28 | #else |
| 29 | static inline int board_is_k2g_gp(void) |
| 30 | { |
| 31 | return false; |
| 32 | } |
| 33 | static inline int board_is_k2g_ice(void) |
| 34 | { |
| 35 | return false; |
| 36 | } |
| 37 | #endif |
| 38 | |
Hao Zhang | 9594820 | 2014-10-22 16:32:31 +0300 | [diff] [blame] | 39 | void spl_init_keystone_plls(void); |
Hao Zhang | 8e697a0 | 2014-07-09 23:44:46 +0300 | [diff] [blame] | 40 | |
| 41 | #endif |