summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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