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.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/io-module/mts-io.c b/io-module/mts-io.c
index 5e557fd..6899aac 100644
--- a/io-module/mts-io.c
+++ b/io-module/mts-io.c
@@ -134,6 +134,8 @@ static void radio_reset_timer_callback(unsigned long data);
/* generic GPIO support */
#include "gpio.c"
+#include "spi.c"
+
/* generic Button support */
//#include "buttons.c"
@@ -610,7 +612,7 @@ static int get_radio_model_from_product_id(void) {
#include "mtcap.c"
#include "mtr.c"
#include "mths.c"
-
+#include "mt100eocg.c"
/* include capabilities sub-directory support */
#include "mts_capab.c"
@@ -819,6 +821,12 @@ mts_id_eeprom_load(void)
}
set_buttons(default_buttons);
log_info("detected board %s", tmp);
+ } else if (strncmp(id_eeprom.product_id, PRODUCT_ID_MT100EOCG, strlen(PRODUCT_ID_MT100EOCG)) == 0) {
+ attr_group = &mt100eocg_platform_attribute_group;
+ gpio_pins = gpio_pins_mt100eocg_0_0;
+ mts_hw_version = MT100EOCG_0_0;
+ set_buttons(default_buttons);
+ log_info("detected board %s", HW_VERSION_MT100EOCG_0_0);
} else {
if(noradio) {
struct attribute **ap = mtcdt_platform_attribute_group.attrs;