2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2016-11-16 16:49:22 +00:00
|
|
|
/*
|
2020-01-28 13:42:23 +00:00
|
|
|
* Copyright (c) 2016-2020 Toradex
|
2016-11-16 16:49:22 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _TDX_CFG_BLOCK_H
|
|
|
|
#define _TDX_CFG_BLOCK_H
|
|
|
|
|
|
|
|
#include "tdx-common.h"
|
|
|
|
|
|
|
|
struct toradex_hw {
|
|
|
|
u16 ver_major;
|
|
|
|
u16 ver_minor;
|
|
|
|
u16 ver_assembly;
|
|
|
|
u16 prodid;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct toradex_eth_addr {
|
|
|
|
u32 oui:24;
|
|
|
|
u32 nic:24;
|
|
|
|
} __attribute__((__packed__));
|
|
|
|
|
|
|
|
enum {
|
|
|
|
COLIBRI_PXA270_V1_312MHZ = 1,
|
|
|
|
COLIBRI_PXA270_V1_520MHZ,
|
|
|
|
COLIBRI_PXA320,
|
|
|
|
COLIBRI_PXA300,
|
2019-04-09 15:25:32 +00:00
|
|
|
COLIBRI_PXA310, /* 5 */
|
2016-11-16 16:49:22 +00:00
|
|
|
COLIBRI_PXA320_IT,
|
|
|
|
COLIBRI_PXA300_XT,
|
|
|
|
COLIBRI_PXA270_312MHZ,
|
|
|
|
COLIBRI_PXA270_520MHZ,
|
2019-04-09 15:25:32 +00:00
|
|
|
COLIBRI_VF50, /* 10 */
|
|
|
|
COLIBRI_VF61, /* not currently on sale */
|
2016-11-16 16:49:22 +00:00
|
|
|
COLIBRI_VF61_IT,
|
|
|
|
COLIBRI_VF50_IT,
|
|
|
|
COLIBRI_IMX6S,
|
2019-04-09 15:25:32 +00:00
|
|
|
COLIBRI_IMX6DL, /* 15 */
|
2016-11-16 16:49:22 +00:00
|
|
|
COLIBRI_IMX6S_IT,
|
|
|
|
COLIBRI_IMX6DL_IT,
|
2019-04-09 15:25:32 +00:00
|
|
|
/* 18 */
|
|
|
|
/* 19 */
|
2016-11-16 16:49:22 +00:00
|
|
|
COLIBRI_T20_256MB = 20,
|
|
|
|
COLIBRI_T20_512MB,
|
|
|
|
COLIBRI_T20_512MB_IT,
|
|
|
|
COLIBRI_T30,
|
|
|
|
COLIBRI_T20_256MB_IT,
|
2019-04-09 15:25:32 +00:00
|
|
|
APALIS_T30_2GB, /* 25 */
|
2016-11-16 16:49:22 +00:00
|
|
|
APALIS_T30_1GB,
|
|
|
|
APALIS_IMX6Q,
|
|
|
|
APALIS_IMX6Q_IT,
|
|
|
|
APALIS_IMX6D,
|
2019-04-09 15:25:32 +00:00
|
|
|
COLIBRI_T30_IT, /* 30 */
|
2016-11-16 16:49:22 +00:00
|
|
|
APALIS_T30_IT,
|
|
|
|
COLIBRI_IMX7S,
|
|
|
|
COLIBRI_IMX7D,
|
|
|
|
APALIS_TK1_2GB,
|
2019-04-09 15:25:32 +00:00
|
|
|
APALIS_IMX6D_IT, /* 35 */
|
2018-05-30 17:01:47 +00:00
|
|
|
COLIBRI_IMX6ULL,
|
2019-04-09 15:25:32 +00:00
|
|
|
APALIS_IMX8QM_WIFI_BT_IT,
|
|
|
|
COLIBRI_IMX8QXP_WIFI_BT_IT,
|
2018-05-30 17:01:47 +00:00
|
|
|
COLIBRI_IMX7D_EMMC,
|
|
|
|
COLIBRI_IMX6ULL_WIFI_BT_IT, /* 40 */
|
|
|
|
COLIBRI_IMX7D_EPDC,
|
2019-04-09 15:25:32 +00:00
|
|
|
APALIS_TK1_4GB, /* not currently on sale */
|
2019-04-09 15:24:07 +00:00
|
|
|
COLIBRI_T20_512MB_IT_SETEK,
|
|
|
|
COLIBRI_IMX6ULL_IT,
|
|
|
|
COLIBRI_IMX6ULL_WIFI_BT, /* 45 */
|
2019-04-09 15:25:33 +00:00
|
|
|
APALIS_IMX8QXP_WIFI_BT_IT,
|
|
|
|
APALIS_IMX8QM_IT,
|
|
|
|
APALIS_IMX8QP_WIFI_BT,
|
|
|
|
APALIS_IMX8QP,
|
|
|
|
COLIBRI_IMX8QXP_IT, /* 50 */
|
|
|
|
COLIBRI_IMX8DX_WIFI_BT,
|
|
|
|
COLIBRI_IMX8DX,
|
2020-01-28 13:42:23 +00:00
|
|
|
APALIS_IMX8QXP,
|
|
|
|
APALIS_IMX8DXP,
|
2020-01-28 13:42:24 +00:00
|
|
|
VERDIN_IMX8MMQ_WIFI_BT_IT,
|
|
|
|
VERDIN_IMX8MNSL,
|
|
|
|
VERDIN_IMX8MMDL,
|
2016-11-16 16:49:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern const char * const toradex_modules[];
|
|
|
|
extern bool valid_cfgblock;
|
|
|
|
extern struct toradex_hw tdx_hw_tag;
|
|
|
|
extern struct toradex_eth_addr tdx_eth_addr;
|
|
|
|
extern u32 tdx_serial;
|
|
|
|
|
|
|
|
int read_tdx_cfg_block(void);
|
|
|
|
|
|
|
|
#endif /* _TDX_CFG_BLOCK_H */
|