summaryrefslogtreecommitdiff
path: root/io-module/mts_io.h
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2014-01-30 12:34:47 -0600
committerMike Fiore <mfiore@multitech.com>2014-01-30 12:34:47 -0600
commit37fa7696793110153cb75182554d0fd2313ada00 (patch)
tree00c2ef811155babdc5699e4b2fa352add6a8c384 /io-module/mts_io.h
parent9b57404a2b91e356dbed48b266036c57d8a8c62f (diff)
downloadmts-io-37fa7696793110153cb75182554d0fd2313ada00.tar.gz
mts-io-37fa7696793110153cb75182554d0fd2313ada00.tar.bz2
mts-io-37fa7696793110153cb75182554d0fd2313ada00.zip
MTR2 hardware detects daughter card, tries to read EEPROM, and logs contents
Diffstat (limited to 'io-module/mts_io.h')
-rw-r--r--io-module/mts_io.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/io-module/mts_io.h b/io-module/mts_io.h
index f2ff2b4..86ab32e 100644
--- a/io-module/mts_io.h
+++ b/io-module/mts_io.h
@@ -81,6 +81,9 @@ do { \
#define CAPA_BLUETOOTH DEVICE_CAPA_VALUE(1, 7)
#define CAPA_WIFI DEVICE_CAPA_VALUE(1, 6)
+#define DAUGHTER_CARD_GPIO "MTDC-GPIOB"
+
+/* on-board EEPROM */
struct mts_id_eeprom_layout {
char vendor_id[32];
char product_id[32];
@@ -94,6 +97,15 @@ struct mts_id_eeprom_layout {
uint8_t reserved[302];
};
+/* daughter card EEPROM */
+struct mts_dc_eeprom_layout {
+ char serial[32];
+ char hw_rev[32];
+ char product_id[32];
+ uint8_t mac_addr[6];
+ uint8_t reserved[410];
+};
+
// GPIO pin types:input, output, open drain (1 = high Z, 0 = output low)
enum {
GPIO_DIR_INPUT,