summaryrefslogtreecommitdiff
path: root/io-module/mts_io.c
diff options
context:
space:
mode:
authorJesse Gilles <jgilles@multitech.com>2016-06-03 11:14:52 -0500
committerJesse Gilles <jgilles@multitech.com>2016-06-03 11:14:52 -0500
commitb217993d7bf5a022a59a36933252ce9b6ecba603 (patch)
tree780848b0a9f1db7ec87c0ef59db0654c44a420cd /io-module/mts_io.c
parent4fcb490b5b2a5b8e33a58c66006460d448cc1c23 (diff)
downloadmts-io-b217993d7bf5a022a59a36933252ce9b6ecba603.tar.gz
mts-io-b217993d7bf5a022a59a36933252ce9b6ecba603.tar.bz2
mts-io-b217993d7bf5a022a59a36933252ce9b6ecba603.zip
add initial support for MTCDT refresh, add MTCDT-0.1 hw version
Diffstat (limited to 'io-module/mts_io.c')
-rw-r--r--io-module/mts_io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index 84756d2..970bbbc 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -748,6 +748,10 @@ static int mts_id_eeprom_load(void)
if (mts_id_eeprom[0] == 0xFF) {
log_error("uninitialized eeprom");
return -EIO;
+ } else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTCDT_0_1, strlen(HW_VERSION_MTCDT_0_1)) == 0) {
+ attr_group = &mtcdt_0_1_platform_attribute_group;
+ gpio_pins = gpio_pins_mtcdt_0_1;
+ log_info("detected board %s", HW_VERSION_MTCDT_0_1);
} else {
attr_group = &mtcdt_platform_attribute_group;
gpio_pins = gpio_pins_mtcdt_0_0;