summaryrefslogtreecommitdiff
path: root/recipes-kernel/rs9113
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2016-11-30 09:34:48 -0600
committerJohn Klug <john.klug@multitech.com>2016-11-30 09:34:48 -0600
commitefdcf3d7165650dae0eee0c4a5011f1c0a5ede4b (patch)
treeb6cbeb9d19e74105b808e993010d40b49805f145 /recipes-kernel/rs9113
parente485a6d6fdd90ebf9e319bef3554e78b92a44872 (diff)
downloadmeta-multitech-efdcf3d7165650dae0eee0c4a5011f1c0a5ede4b.tar.gz
meta-multitech-efdcf3d7165650dae0eee0c4a5011f1c0a5ede4b.tar.bz2
meta-multitech-efdcf3d7165650dae0eee0c4a5011f1c0a5ede4b.zip
New reset times for rs9113.
Diffstat (limited to 'recipes-kernel/rs9113')
-rw-r--r--recipes-kernel/rs9113/files/rs9113/rs9113.default7
-rwxr-xr-xrecipes-kernel/rs9113/files/rs9113/rs9113.init6
2 files changed, 10 insertions, 3 deletions
diff --git a/recipes-kernel/rs9113/files/rs9113/rs9113.default b/recipes-kernel/rs9113/files/rs9113/rs9113.default
index 9d474bc..aeba4f8 100644
--- a/recipes-kernel/rs9113/files/rs9113/rs9113.default
+++ b/recipes-kernel/rs9113/files/rs9113/rs9113.default
@@ -51,3 +51,10 @@ ANT_SEL_VAL=2
ONBOARD_ANT_SEL=1
SET_RETRY_COUNT=15
+# Time to hold high, then hold low on reset during driver load reset
+SLEEPTIME=100000
+
+# Time to wait while looping for interrupt and wake-up pins
+# to go high.
+INTSLEEPTIME=100000
+
diff --git a/recipes-kernel/rs9113/files/rs9113/rs9113.init b/recipes-kernel/rs9113/files/rs9113/rs9113.init
index 2351ae4..c723846 100755
--- a/recipes-kernel/rs9113/files/rs9113/rs9113.init
+++ b/recipes-kernel/rs9113/files/rs9113/rs9113.init
@@ -27,16 +27,16 @@ case "$1" in
# wait for it to settle.
if [ -f "$RS9113_RESET" ] ; then
echo 1 >$RS9113_RESET
- usleep 100
+ usleep $SLEEPTIME
echo 0 >$RS9113_RESET
- usleep 100
+ usleep $SLEEPTIME
echo 1 >$RS9113_RESET
N=1
while [ $N -lt 20 ] ; do
INT=$(cat $RS9113_INT)
WKUP=$(cat $RS9113_WKUP)
if [ $INT -ne 1 -o $WKUP -ne 1 ] ; then
- usleep 100
+ usleep $INTSLEEPTIME
else
break
fi