summaryrefslogtreecommitdiff
path: root/recipes-bsp/multitech
diff options
context:
space:
mode:
authorMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2016-10-20 13:01:45 +0300
committerMykyta Dorokhin <mykyta.dorokhin@globallogic.com>2016-10-20 13:02:57 +0300
commitca4c69e078b0e24a52dde3780977a5631721f134 (patch)
tree61ca29c51aa267d1eff5c983a65ee05696255254 /recipes-bsp/multitech
parent47ae54aa38a710ae6c20985cf0f9814c0c76b00b (diff)
downloadmeta-multitech-ca4c69e078b0e24a52dde3780977a5631721f134.tar.gz
meta-multitech-ca4c69e078b0e24a52dde3780977a5631721f134.tar.bz2
meta-multitech-ca4c69e078b0e24a52dde3780977a5631721f134.zip
mtp: execute eth-reset on boot to reset eth phy
Diffstat (limited to 'recipes-bsp/multitech')
-rw-r--r--recipes-bsp/multitech/mts-io/mts-io.mtp.init12
1 files changed, 6 insertions, 6 deletions
diff --git a/recipes-bsp/multitech/mts-io/mts-io.mtp.init b/recipes-bsp/multitech/mts-io/mts-io.mtp.init
index f247a9b..3ce08a9 100644
--- a/recipes-bsp/multitech/mts-io/mts-io.mtp.init
+++ b/recipes-bsp/multitech/mts-io/mts-io.mtp.init
@@ -5,6 +5,11 @@ lora_init() {
mts-io-sysfs store lora-reset 0
}
+eth_init() {
+ # reset eth phy
+ mts-io-sysfs store eth-reset 0
+}
+
cell_init() {
# remove /dev/modem_at[0,1] symlinks
rm -f /dev/modem_at[0,1]
@@ -16,17 +21,12 @@ cell_init() {
mts-io-sysfs store radio-power 1
}
-eth_init() {
- mts-io-sysfs store eth-enabled 0
- mts-io-sysfs store eth-enabled 1
-}
-
case $1 in
start)
echo "Loading mts-io module"
modprobe mts_io
- eth_init
lora_init
+ eth_init
cell_init &
;;