diff options
author | Mike Fiore <mfiore@multitech.com> | 2013-05-01 12:16:51 -0500 |
---|---|---|
committer | Mike Fiore <mfiore@multitech.com> | 2013-05-01 12:16:51 -0500 |
commit | f8421437524cbba156e63c2fa04d1b641d963d48 (patch) | |
tree | e8d02d1a1c9bd9018acf4b8e7e78258854d61429 /io-module/mts_io.c | |
parent | 49b27c48f56a2d772676963f4c0f9c16eac78c7f (diff) | |
download | mts-io-f8421437524cbba156e63c2fa04d1b641d963d48.tar.gz mts-io-f8421437524cbba156e63c2fa04d1b641d963d48.tar.bz2 mts-io-f8421437524cbba156e63c2fa04d1b641d963d48.zip |
add mtocgd product id and hw version, support to detect board type in init code
Diffstat (limited to 'io-module/mts_io.c')
-rw-r--r-- | io-module/mts_io.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c index b20a5f8..1cae937 100644 --- a/io-module/mts_io.c +++ b/io-module/mts_io.c @@ -2390,6 +2390,15 @@ static int mts_id_eeprom_load(void) has_spi_dout = 0; has_spi_temp = 1; log_info("detected board %s", HW_VERSION_MTOCGD3_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; + mts_product_id = MTOCGD_0_0; + 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_0); } else { attr_group = &mtcdp_platform_attribute_group; gpio_pins = gpio_pins_mtcdp_1_0; |