summaryrefslogtreecommitdiff
path: root/board/toradex/common/tdx-common.h
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2016-11-16 17:49:22 +0100
committerTom Rini <trini@konsulko.com>2016-11-28 15:10:32 -0500
commita2777ecb9d11882dba696035defa35c70dd26733 (patch)
tree1f28cb6d01bdcadd62b82363130634604aca3b04 /board/toradex/common/tdx-common.h
parentb05d6806cd6a95d46c22036a684a09501fdb2264 (diff)
toradex: config block handling
Add Toradex factory configuration block handling. The config block is a data structure which gets stored to flash during production testing. The structure holds such information as board resp. hardware revision, product ID and serial number which is used as the NIC part of the Ethernet MAC address as well. The config block will be read upon boot by the show_board_info() function, displayed as part of the board information and passed to Linux via device tree or ATAGs. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'board/toradex/common/tdx-common.h')
-rw-r--r--board/toradex/common/tdx-common.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/board/toradex/common/tdx-common.h b/board/toradex/common/tdx-common.h
new file mode 100644
index 0000000000..f308ebda63
--- /dev/null
+++ b/board/toradex/common/tdx-common.h
@@ -0,0 +1,13 @@
+/*
+ * Copyright (c) 2016 Toradex, Inc.
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef _TDX_COMMON_H
+#define _TDX_COMMON_H
+
+#define TORADEX_USB_PRODUCT_NUM_OFFSET 0x4000
+#define TDX_USB_VID 0x1B67
+
+#endif /* _TDX_COMMON_H */