diff options
author | Volodymyr Vorobiov <volodymyr.vorobiov@globallogic.com> | 2019-10-28 17:06:38 +0200 |
---|---|---|
committer | Volodymyr Vorobiov <volodymyr.vorobiov@globallogic.com> | 2019-10-28 17:06:38 +0200 |
commit | 88c747744d74a808ab5de0e6232327918c70ecbd (patch) | |
tree | d5f0d4876f2c5dc7a32735832b97a18067253869 /io-module/mts-io.c | |
parent | 6edda2b3a73cbf41f6f92055d8949a4095f24d33 (diff) | |
download | mts-io-88c747744d74a808ab5de0e6232327918c70ecbd.tar.gz mts-io-88c747744d74a808ab5de0e6232327918c70ecbd.tar.bz2 mts-io-88c747744d74a808ab5de0e6232327918c70ecbd.zip |
Initial commit of mt100eocg suport
Diffstat (limited to 'io-module/mts-io.c')
-rw-r--r-- | io-module/mts-io.c | 10 |
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; |