summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2014-02-14 11:10:10 -0600
committerMike Fiore <mfiore@multitech.com>2014-02-14 11:10:10 -0600
commita006066f4a22954d5ab87549175111e4612a14dd (patch)
tree5b433ddca25ec615fce23f410799d95243102aab
parent8375b880a83b15c63c487f4e75f9105dcdca575f (diff)
downloadcdp-io-controller-0.8.0.tar.gz
cdp-io-controller-0.8.0.tar.bz2
cdp-io-controller-0.8.0.zip
switch from MTOCGD3 to MTOCGD2v0.8.0
-rw-r--r--io-module/mts_io.c6
-rw-r--r--io-module/mts_io.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index 5a30e2e..d36f721 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -3525,16 +3525,16 @@ static int mts_id_eeprom_load(void)
has_spi_dout = 0;
has_spi_temp = 0;
log_info("detected board %s", HW_VERSION_MTR_0_1);
- } else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTOCGD3_0_0, strlen(HW_VERSION_MTOCGD3_0_0)) == 0) {
+ } else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTOCGD2_0_0, strlen(HW_VERSION_MTOCGD2_0_0)) == 0) {
attr_group = &mtr2_platform_attribute_group;
gpio_pins = gpio_pins_mtr2_0_0;
- mts_product_id = MTOCGD3_0_0;
+ mts_product_id = MTOCGD2_0_0;
daughter_card_capable = true;
has_spi_sout = 0;
has_spi_din = 0;
has_spi_dout = 0;
has_spi_temp = 1;
- log_info("detected board %s", HW_VERSION_MTOCGD3_0_0);
+ log_info("detected board %s", HW_VERSION_MTOCGD2_0_0);
} else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTOCGD_0_0, strlen(HW_VERSION_MTOCGD_0_0)) == 0) {
attr_group = &mtr_platform_attribute_group;
gpio_pins = gpio_pins_mtr_0_0;
diff --git a/io-module/mts_io.h b/io-module/mts_io.h
index efbd8f8..bcf8e74 100644
--- a/io-module/mts_io.h
+++ b/io-module/mts_io.h
@@ -30,7 +30,7 @@ struct device_attribute _dev_name = { \
#define PRODUCT_ID_MT100EOCG "MT100EOCG"
#define PRODUCT_ID_MTR2 "MTR2"
#define PRODUCT_ID_MTR "MTR"
-#define PRODUCT_ID_MTOCGD3 "MTOCGD3"
+#define PRODUCT_ID_MTOCGD2 "MTOCGD2"
#define PRODUCT_ID_MTOCGD "MTOCGD"
#define PRODUCT_ID_MTDC_GPIOB "MTDC-GPIOB"
@@ -43,7 +43,7 @@ struct device_attribute _dev_name = { \
#define HW_VERSION_MTR2_0_0 "MTR2-0.0"
#define HW_VERSION_MTR_0_0 "MTR-0.0"
#define HW_VERSION_MTR_0_1 "MTR-0.1"
-#define HW_VERSION_MTOCGD3_0_0 "MTOCGD3-0.0"
+#define HW_VERSION_MTOCGD2_0_0 "MTOCGD2-0.0"
#define HW_VERSION_MTOCGD_0_0 "MTOCGD-0.0"
#define HW_VERSION_MTOCGD_0_1 "MTOCGD-0.1"
@@ -54,7 +54,7 @@ enum {
MTR2_0_0,
MTR_0_0,
MTR_0_1,
- MTOCGD3_0_0,
+ MTOCGD2_0_0,
MTOCGD_0_0,
MTOCGD_0_1,
};