summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2016-11-30 11:57:51 -0600
committerJohn Klug <john.klug@multitech.com>2016-11-30 11:57:51 -0600
commit26311a1776555c2c1d3f208b64a90585085425d4 (patch)
tree8a2defa7a566788c32ce0f262c5ed41121486f84
parentefdcf3d7165650dae0eee0c4a5011f1c0a5ede4b (diff)
downloadmeta-multitech-26311a1776555c2c1d3f208b64a90585085425d4.tar.gz
meta-multitech-26311a1776555c2c1d3f208b64a90585085425d4.tar.bz2
meta-multitech-26311a1776555c2c1d3f208b64a90585085425d4.zip
Validate platform and add rs9113 driver disable parameter3.2.2
-rw-r--r--recipes-kernel/rs9113/files/rs9113/rs9113.default6
-rwxr-xr-xrecipes-kernel/rs9113/files/rs9113/rs9113.init7
2 files changed, 13 insertions, 0 deletions
diff --git a/recipes-kernel/rs9113/files/rs9113/rs9113.default b/recipes-kernel/rs9113/files/rs9113/rs9113.default
index aeba4f8..87b619a 100644
--- a/recipes-kernel/rs9113/files/rs9113/rs9113.default
+++ b/recipes-kernel/rs9113/files/rs9113/rs9113.default
@@ -1,3 +1,9 @@
+#
+# Skip loading the RS9113 related drivers if
+# set to zero.
+#
+RS9113_LOAD=1
+
# Parameters for rs9113 driver
#
# Enable Antenna Diversity (1)
diff --git a/recipes-kernel/rs9113/files/rs9113/rs9113.init b/recipes-kernel/rs9113/files/rs9113/rs9113.init
index c723846..d594e28 100755
--- a/recipes-kernel/rs9113/files/rs9113/rs9113.init
+++ b/recipes-kernel/rs9113/files/rs9113/rs9113.init
@@ -23,6 +23,10 @@ RS9113_WKUP=${MTS_IODIR}/wifi-bt-lpwkup
case "$1" in
start)
+ if ((RS9113_LOAD == 0)) ; then
+ # We don't want the driver loaded.
+ exit 0
+ fi
# Reset the RS9113 chip is ready, and
# wait for it to settle.
if [ -f "$RS9113_RESET" ] ; then
@@ -47,6 +51,9 @@ case "$1" in
if [ $WKUP -ne 1 ] ; then
logger -t rs9113 -p error -s "$RS9113_WKUP is $WKUP"
fi
+ else
+ # No WiFi BT, so exit quietly
+ exit 0
fi
/usr/bin/logger -t "rs9113" -p info -s "Loading rs9113 modules with COEX=$COEX_MODE and Country=$SET_COUNTRY_CODE"
/usr/sbin/rs9113_load_modules.sh $CONFIG