summaryrefslogtreecommitdiff
path: root/io-module/mts_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io-module/mts_io.c')
-rw-r--r--io-module/mts_io.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index 0b22592..547f099 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -47,7 +47,7 @@
#include "mts_io.h"
-#define DRIVER_VERSION "v1.4.2"
+#define DRIVER_VERSION "v1.5.0"
#define DRIVER_AUTHOR "James Maki <jmaki@multitech.com>"
#define DRIVER_DESC "MTS-IO Controller"
#define DRIVER_NAME "mts-io"
@@ -635,7 +635,7 @@ static DEVICE_ATTR_RO_MTS(dev_attr_eth_mac, "mac-eth",
/* include per-device pins and attributes */
#include "mtcdt.c"
-#include "mtp.c"
+#include "mtcap.c"
#if NUM_AP > 0
@@ -786,11 +786,11 @@ static int mts_id_eeprom_load()
if (mts_id_eeprom[0] == 0xFF) {
log_error("uninitialized eeprom");
return -EIO;
- } else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTP_0_0, strlen(HW_VERSION_MTP_0_0)) == 0) {
- attr_group = &mtp_0_0_platform_attribute_group;
- gpio_pins = gpio_pins_mtp_0_0;
- mts_hw_version = MTP_0_0;
- log_info("detected board %s", HW_VERSION_MTP_0_0);
+ } else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTCAP_0_0, strlen(HW_VERSION_MTCAP_0_0)) == 0) {
+ attr_group = &mtcap_0_0_platform_attribute_group;
+ gpio_pins = gpio_pins_mtcap_0_0;
+ mts_hw_version = MTCAP_0_0;
+ log_info("detected board %s", HW_VERSION_MTCAP_0_0);
}
else if (strncmp(id_eeprom.hw_version, HW_VERSION_MTCDT_0_1, strlen(HW_VERSION_MTCDT_0_1)) == 0) {
attr_blength = sizeof mtcdt_0_1_platform_attributes;
@@ -877,7 +877,7 @@ static int mts_id_eeprom_load()
}
log_info("uuid: %s", (char*)buf);
- if (mts_hw_version == MTP_0_0) {
+ if (mts_hw_version == MTCAP_0_0) {
log_info("lora-eui: %02X:%02X:%02X:%02X:%02X:%02X:%02X:%02X",
id_eeprom.lora_eui[0],
id_eeprom.lora_eui[1],