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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index 8a2de67..2d60a6d 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -97,6 +97,7 @@ static DEFINE_MUTEX(mts_io_mutex);
#include "mtac.c"
#include "mtac_gpiob.c"
#include "mtac_mfser.c"
+#include "mtac_eth.c"
/* reset button handling */
#define RESET_CHECK_PER_SEC 8
@@ -400,6 +401,11 @@ static bool load_port(int port) {
log_error("failed to set up mfser port info");
return false;
}
+ } else if (strstr(ap_eeprom[port_index].product_id, PRODUCT_ID_MTAC_ETH)) {
+ if (! set_eth_info(port_info[port_index])) {
+ log_error("failed to set up eth port info");
+ return false;
+ }
} else {
log_error("unknown accessory card [%s] in port %d", ap_eeprom[port_index].product_id, port);
return false;