summaryrefslogtreecommitdiff
path: root/recipes-bsp
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-07-03 11:22:01 -0500
commitb2b40615dcc0be9e945c75870150e8e7f627904f (patch)
tree2c2a1a6b28895133ef212cfeab95a0c0a0107c0b /recipes-bsp
parentefbae09b0364c6c5e7957d0f075722b57cdf95af (diff)
downloadmeta-multitech-b2b40615dcc0be9e945c75870150e8e7f627904f.tar.gz
meta-multitech-b2b40615dcc0be9e945c75870150e8e7f627904f.tar.bz2
meta-multitech-b2b40615dcc0be9e945c75870150e8e7f627904f.zip
Enable eeprom read from mts-io
Diffstat (limited to 'recipes-bsp')
-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