summaryrefslogtreecommitdiff
path: root/recipes-bsp/multitech/mts-io/mts-io.mtcap.init
diff options
context:
space:
mode:
authorBrandon Bayer <bbayer@multitech.com>2016-11-02 16:47:46 -0500
committerBrandon Bayer <bbayer@multitech.com>2016-11-02 17:13:22 -0500
commit1eb436893b7f5a24e62eebc4850bc7e35d9e9367 (patch)
tree7278156d492a4bf8900985d08e3ede0f4f0c477c /recipes-bsp/multitech/mts-io/mts-io.mtcap.init
parentde22fe2e10f6c1acdf8e5bddd7834f5d7fc168d7 (diff)
downloadmeta-multitech-1eb436893b7f5a24e62eebc4850bc7e35d9e9367.tar.gz
meta-multitech-1eb436893b7f5a24e62eebc4850bc7e35d9e9367.tar.bz2
meta-multitech-1eb436893b7f5a24e62eebc4850bc7e35d9e9367.zip
mtcap: move lora eeprom attributes to lora directory
Diffstat (limited to 'recipes-bsp/multitech/mts-io/mts-io.mtcap.init')
-rw-r--r--recipes-bsp/multitech/mts-io/mts-io.mtcap.init17
1 files changed, 16 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 b4aa489..02d5834 100644
--- a/recipes-bsp/multitech/mts-io/mts-io.mtcap.init
+++ b/recipes-bsp/multitech/mts-io/mts-io.mtcap.init
@@ -2,12 +2,27 @@
lora_init() {
# reset lora chip
- mts-io-sysfs store lora-reset 0
+ mts-io-sysfs store lora/reset 1
+ mts-io-sysfs store lora/reset 0
+ usleep 100000
+ mts-io-sysfs store lora/reset 1
+
+ #Initialize FPGA
+ # usleep 100000
+ # mts-io-sysfs store lora/creset 1
+ # mts-io-sysfs store lora/creset 0
+ # while [ "$(mts-io-sysfs show lora/cdone)" == "0" ]; do
+ # usleep 10
+ # done
+ # mts-io-sysfs store lora/creset 1
}
eth_init() {
# reset eth phy
+ mts-io-sysfs store eth-reset 1
mts-io-sysfs store eth-reset 0
+ usleep 100000
+ mts-io-sysfs store eth-reset 1
}
cell_init() {