summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--io-module/machine/mtcpm.c2
-rw-r--r--io-module/mts-io.c4
-rw-r--r--io-module/mts_io_module.h3
3 files changed, 5 insertions, 4 deletions
diff --git a/io-module/machine/mtcpm.c b/io-module/machine/mtcpm.c
index a3cbe87..8e025c4 100644
--- a/io-module/machine/mtcpm.c
+++ b/io-module/machine/mtcpm.c
@@ -255,7 +255,7 @@ static struct kobject *mts_cpu_kobject = NULL;
static int mts_cpu_dir_create(uint8_t hw_version)
{
- if (hw_version != MTCPM_0_0 && hw_version != MTCPM_0_1)
+ if (hw_version != MTCPM_0_0 && hw_version != MTCPM_0_1 && hw_version != MTCPM_0_2)
return 0;
mts_cpu_kobject = kobject_create_and_add("cpu", &mts_io_platform_device->dev.kobj);
diff --git a/io-module/mts-io.c b/io-module/mts-io.c
index a1c71ea..27dbad2 100644
--- a/io-module/mts-io.c
+++ b/io-module/mts-io.c
@@ -1214,7 +1214,7 @@ mts_id_eeprom_load(void)
log_info("detected board %s", hw_version_str);
} else if (found_board(HW_VERSION_MTCPM_0_0,MTCPM_0_0,&hw_version_str,&mts_hw_version) ||
found_board(HW_VERSION_MTCPM_0_1,MTCPM_0_1,&hw_version_str,&mts_hw_version) ||
- found_board(HW_VERSION_MTCPM_0_2,MTCPM_0_1,&hw_version_str,&mts_hw_version)) {
+ found_board(HW_VERSION_MTCPM_0_2,MTCPM_0_2,&hw_version_str,&mts_hw_version)) {
need_append = 0;
current_blength = attr_blength = sizeof mtcpm_platform_attributes;
current_blength -= sizeof(struct attribute *); /* Length without terminating NULL */
@@ -1328,7 +1328,7 @@ mts_id_eeprom_load(void)
log_info("capa-adc: %s", DEVICE_CAPA(id_eeprom.capa, CAPA_ADC) ? "yes" : "no");
log_info("capa-wifi: %s", DEVICE_CAPA(id_eeprom.capa, CAPA_WIFI) ? "yes" : "no");
log_info("capa-bluetooth: %s", DEVICE_CAPA(id_eeprom.capa, CAPA_BLUETOOTH) ? "yes" : "no");
- if ((mts_hw_version != MTCPM_0_0) || (mts_hw_version != MTCPM_0_1)) {
+ if ((mts_hw_version != MTCPM_0_0) || (mts_hw_version != MTCPM_0_1) || (mts_hw_version != MTCPM_0_2)) {
/* Moved to mtcdt3b driver in MTCDT3 baseboard hardware */
log_info("capa-lora: %s", DEVICE_CAPA(id_eeprom.capa, CAPA_LORA) ? "yes" : "no");
log_info("capa-lora-lbt: %s", DEVICE_CAPA(id_eeprom.capa, CAPA_LORA_LBT) ? "yes" : "no");
diff --git a/io-module/mts_io_module.h b/io-module/mts_io_module.h
index b22e4cb..6a0a5a1 100644
--- a/io-module/mts_io_module.h
+++ b/io-module/mts_io_module.h
@@ -52,7 +52,7 @@
#define HW_VERSION_MTCPM_DASH "MTCPM-"
#define HW_VERSION_MTCPM_0_0 "MTCPM-0.0" // Lora-16 CPU
#define HW_VERSION_MTCPM_0_1 "MTCPM-0.1" // MTCDT3AC CPU, GPS on CDC ACM driver
-#define HW_VERSION_MTCPM_0_2 "MTCPM-0.2"
+#define HW_VERSION_MTCPM_0_2 "MTCPM-0.2"
enum {
MTHWUNKNOWN,
@@ -79,6 +79,7 @@ enum {
MTHS_0_1,
MTCPM_0_0,
MTCPM_0_1,
+ MTCPM_0_2,
MTCAP3_0_0,
MTCDT_0_2,
MTCDTIP_0_1, // MTCDTIP revision