summaryrefslogtreecommitdiff
path: root/board/toradex/common/configblock.h
diff options
context:
space:
mode:
Diffstat (limited to 'board/toradex/common/configblock.h')
-rw-r--r--board/toradex/common/configblock.h53
1 files changed, 50 insertions, 3 deletions
diff --git a/board/toradex/common/configblock.h b/board/toradex/common/configblock.h
index bd6c28648a..cce61ac89e 100644
--- a/board/toradex/common/configblock.h
+++ b/board/toradex/common/configblock.h
@@ -7,9 +7,56 @@
#ifndef _TRDX_CONFIGBLOCK_H
#define _TRDX_CONFIGBLOCK_H
+#include <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_PXA320 = 3,
+ COLIBRI_PXA300,
+ COLIBRI_PXA310,
+ COLIBRI_PXA320_IT,
+ COLIBRI_PXA300_XT,
+ COLIBRI_PXA270_312MHZ,
+ COLIBRI_PXA270_520MHZ,
+ COLIBRI_VF50, /* not currently on sale */
+ COLIBRI_VF61,
+ COLIBRI_VF61_IT,
+ COLIBRI_VF50_IT,
+ COLIBRI_IMX6S,
+ COLIBRI_IMX6DL,
+ COLIBRI_IMX6S_IT,
+ COLIBRI_IMX6DL_IT,
+ COLIBRI_T20_256MB = 20,
+ COLIBRI_T20_512MB,
+ COLIBRI_T20_512MB_IT,
+ COLIBRI_T30,
+ COLIBRI_T20_256MB_IT,
+ APALIS_T30_2GB,
+ APALIS_T30_1GB,
+ APALIS_IMX6Q,
+ APALIS_IMX6Q_IT,
+ APALIS_IMX6D,
+ COLIBRI_T30_IT,
+ APALIS_T30_IT,
+};
+
+extern const char* const toradex_modules[];
+extern bool valid_cfgblock;
+extern struct toradex_hw trdx_hw_tag;
+extern struct toradex_eth_addr trdx_eth_addr;
+extern u32 trdx_serial;
+
int read_trdx_cfg_block(void);
-void display_board_info(void);
-void get_board_serial_char(char *serialnr);
-void get_board_product_number(unsigned short *prodnr);
#endif /* _TRDX_CONFIGBLOCK_H */