summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--recipes-bsp/multitech/mts-io/mts-io.mtcap.init6
1 files changed, 5 insertions, 1 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.mtcap.init b/recipes-bsp/multitech/mts-io/mts-io.mtcap.init
index 7ba0350..81807b1 100644
--- a/recipes-bsp/multitech/mts-io/mts-io.mtcap.init
+++ b/recipes-bsp/multitech/mts-io/mts-io.mtcap.init
@@ -1,7 +1,9 @@
#!/bin/bash
-
sysdir=/sys/devices/platform/mts-io
+
+i2c=/sys/bus/i2c/devices/
+
setwificap() {
WIFICAP=0
if [[ -f ${sysdir}/capability/wifi ]] && (($(cat ${sysdir}/capability/wifi) == 1)) ; then
@@ -60,6 +62,8 @@ start_lora_led_updater() {
case $1 in
start)
+ # Point the firmware API at our i2c EEPROMs
+ echo -n ${i2c} > /sys/module/firmware_class/parameters/path
echo "Loading mts-io module"
modprobe -r atmel_mci
# Point the firmware API at our i2c EEPROMs