1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (c) 2016-2020 Toradex
6 #ifndef _TDX_CFG_BLOCK_H
7 #define _TDX_CFG_BLOCK_H
9 #include "tdx-common.h"
18 struct toradex_eth_addr {
21 } __attribute__((__packed__));
24 COLIBRI_PXA270_V1_312MHZ = 1,
25 COLIBRI_PXA270_V1_520MHZ,
28 COLIBRI_PXA310, /* 5 */
31 COLIBRI_PXA270_312MHZ,
32 COLIBRI_PXA270_520MHZ,
33 COLIBRI_VF50, /* 10 */
34 COLIBRI_VF61, /* not currently on sale */
38 COLIBRI_IMX6DL, /* 15 */
43 COLIBRI_T20_256MB = 20,
48 APALIS_T30_2GB, /* 25 */
53 COLIBRI_T30_IT, /* 30 */
58 APALIS_IMX6D_IT, /* 35 */
60 APALIS_IMX8QM_WIFI_BT_IT,
61 COLIBRI_IMX8QXP_WIFI_BT_IT,
63 COLIBRI_IMX6ULL_WIFI_BT_IT, /* 40 */
65 APALIS_TK1_4GB, /* not currently on sale */
66 COLIBRI_T20_512MB_IT_SETEK,
68 COLIBRI_IMX6ULL_WIFI_BT, /* 45 */
69 APALIS_IMX8QXP_WIFI_BT_IT,
71 APALIS_IMX8QP_WIFI_BT,
73 COLIBRI_IMX8QXP_IT, /* 50 */
74 COLIBRI_IMX8DX_WIFI_BT,
80 extern const char * const toradex_modules[];
81 extern bool valid_cfgblock;
82 extern struct toradex_hw tdx_hw_tag;
83 extern struct toradex_eth_addr tdx_eth_addr;
84 extern u32 tdx_serial;
86 int read_tdx_cfg_block(void);
88 #endif /* _TDX_CFG_BLOCK_H */