diff options
author | Mike Fiore <mfiore@multitech.com> | 2013-05-02 14:34:11 -0500 |
---|---|---|
committer | Jesse Gilles <jgilles@multitech.com> | 2014-01-17 14:26:47 -0600 |
commit | 91be2547481bcfdd69a1d22510011a0b169dfd4c (patch) | |
tree | 8ae88780d6c7517d9c292093e6cc2d7d4e5fd144 | |
parent | 8df315054f6471a4598e45588919610d9934ffbb (diff) | |
download | mts-io-91be2547481bcfdd69a1d22510011a0b169dfd4c.tar.gz mts-io-91be2547481bcfdd69a1d22510011a0b169dfd4c.tar.bz2 mts-io-91be2547481bcfdd69a1d22510011a0b169dfd4c.zip |
add mtocgd rev-b
-rw-r--r-- | io-module/mts_io.c | 9 | ||||
-rw-r--r-- | io-module/mts_io.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c index c01b1c0..dc5a65f 100644 --- a/io-module/mts_io.c +++ b/io-module/mts_io.c @@ -2942,6 +2942,15 @@ static int mts_id_eeprom_load(void) has_spi_dout = 0; has_spi_temp = 0; log_info("detected board %s", HW_VERSION_MTOCGD_0_0); + } else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTOCGD_0_1, strlen(HW_VERSION_MTOCGD_0_1)) == 0) { + attr_group = &mtr_platform_attribute_group; + gpio_pins = gpio_pins_mtr_0_1; + mts_product_id = MTOCGD_0_1; + has_spi_sout = 0; + has_spi_din = 0; + has_spi_dout = 0; + has_spi_temp = 0; + log_info("detected board %s", HW_VERSION_MTOCGD_0_1); } else { attr_group = &mtcdp_platform_attribute_group; gpio_pins = gpio_pins_mtcdp_1_0; diff --git a/io-module/mts_io.h b/io-module/mts_io.h index 30b794d..f2ff2b4 100644 --- a/io-module/mts_io.h +++ b/io-module/mts_io.h @@ -42,6 +42,7 @@ struct device_attribute _dev_name = { \ #define HW_VERSION_MTR_0_1 "MTR-0.1" #define HW_VERSION_MTOCGD3_0_0 "MTOCGD3-0.0" #define HW_VERSION_MTOCGD_0_0 "MTOCGD-0.0" +#define HW_VERSION_MTOCGD_0_1 "MTOCGD-0.1" enum { MTCDP_E1_DK_0_0, @@ -52,6 +53,7 @@ enum { MTR_0_1, MTOCGD3_0_0, MTOCGD_0_0, + MTOCGD_0_1, }; #define DEVICE_CAPA_INDEX(c) (((c) & 0xFF) >> 3) |