summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-01-24 17:22:21 -0600
committerJohn Klug <john.klug@multitech.com>2019-01-24 17:22:21 -0600
commit55b3fdaea0dd514538b2a439caf20dd9880b441a (patch)
tree2c2a1a6b28895133ef212cfeab95a0c0a0107c0b
parenta2c5147aaab6ffd415507ae7f8c73c39e33183b4 (diff)
downloadmeta-multitech-55b3fdaea0dd514538b2a439caf20dd9880b441a.tar.gz
meta-multitech-55b3fdaea0dd514538b2a439caf20dd9880b441a.tar.bz2
meta-multitech-55b3fdaea0dd514538b2a439caf20dd9880b441a.zip
Enable eeprom read from mts-io
-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