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,
78 VERDIN_IMX8MMQ_WIFI_BT_IT,
85 VERDIN_DEVELOPMENT_BOARD = 156,
89 VERDIN_DSI_TO_HDMI_ADAPTER = 157,
90 VERDIN_DSI_TO_LVDS_ADAPTER = 159,
93 extern const char * const toradex_modules[];
94 extern const char * const toradex_carrier_boards[];
95 extern bool valid_cfgblock;
96 extern struct toradex_hw tdx_hw_tag;
97 extern struct toradex_hw tdx_car_hw_tag;
98 extern struct toradex_eth_addr tdx_eth_addr;
99 extern u32 tdx_serial;
100 extern u32 tdx_car_serial;
102 int read_tdx_cfg_block(void);
103 int read_tdx_cfg_block_carrier(void);
105 int try_migrate_tdx_cfg_block_carrier(void);
107 #endif /* _TDX_CFG_BLOCK_H */