summaryrefslogtreecommitdiff
path: root/meta/packages/gsm/files/default
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-05-22 10:03:59 +0000
committerRichard Purdie <richard@openedhand.com>2008-05-22 10:03:59 +0000
commit39eb232793686099027d7b5577e541ac12339042 (patch)
tree5254028d9b5dd5be1c4f9497456af4d857ef1113 /meta/packages/gsm/files/default
parent691f2eb5764d72801cecd8ab999782777d556b61 (diff)
downloadopenembedded-core-39eb232793686099027d7b5577e541ac12339042.tar.gz
openembedded-core-39eb232793686099027d7b5577e541ac12339042.tar.bz2
openembedded-core-39eb232793686099027d7b5577e541ac12339042.tar.xz
openembedded-core-39eb232793686099027d7b5577e541ac12339042.zip
libgsmd: Sync with OE.dev
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4539 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/gsm/files/default')
-rw-r--r--meta/packages/gsm/files/default54
1 files changed, 54 insertions, 0 deletions
diff --git a/meta/packages/gsm/files/default b/meta/packages/gsm/files/default
new file mode 100644
index 000000000..cf36460fa
--- /dev/null
+++ b/meta/packages/gsm/files/default
@@ -0,0 +1,54 @@
+# gsmd This shell script configures for the gsmd init script.
+
+. /etc/init.d/functions
+
+case `machine_id` in
+ "gta01"|"gta02")
+ GSMD_OPTS="-s 115200 -F"
+ if [ -d '/sys/bus/platform/devices/gta01-pm-gsm.0' ] ; then
+ GSM_POW="/sys/bus/platform/devices/gta01-pm-gsm.0/power_on"
+ GSM_RES="/sys/bus/platform/devices/gta01-pm-gsm.0/reset"
+ else
+ GSM_POW="/sys/bus/platform/devices/neo1973-pm-gsm.0/power_on"
+ GSM_RES="/sys/bus/platform/devices/neo1973-pm-gsm.0/reset"
+ fi
+ GSM_DEV="/dev/ttySAC0"
+ GSM_DL="/sys/devices/platform/neo1973-pm-gsm.0/download"
+ ;;
+ "htc_apache"|"htc_blueangel"|"htc_universal")
+ GSMD_OPTS="-s 115200 -F"
+ GSM_DEV="/dev/ttyS0"
+ ;;
+ "htc_himalaya")
+ GSMD_OPTS="-s 115200 -F"
+ GSM_DEV="/dev/ttyS2"
+ ;;
+ "htc_magician")
+ GSMD_OPTS="-s 115200 -F"
+ GSM_DEV="/dev/ttyS1"
+ ;;
+ "palm_treo_650")
+ GSMD_OPTS="-s 460800 -F -w 1"
+ GSM_DEV="/dev/ttyS0"
+ ;;
+ "motorola_ezx_platform")
+ GSMD_OPTS="-s 115200 -F -v ti"
+ GSM_DEV="/dev/mux0"
+ ;;
+ *)
+ # Unknown board
+
+ # If you must specify special options, uncomment and modify the next line
+ #GSMD_OPTS="-s 115200 -F"
+
+ # If your GSM device needs to be powered up, uncomment and modify the next line
+ #GSM_POW="/sys/bus/platform/devices/gta01-pm-gsm.0/power_on"
+
+ # If your GSM device then needs to be reset, uncomment and modify the next line
+ #GSM_RES="/sys/bus/platform/devices/gta01-pm-gsm.0/reset"
+
+ # This should be in a common /etc/default/serial, together with
+ # BT_DEV and IR_DEV for devices that have those on a serial port
+ #GSM_DEV="/dev/ttyS1"
+ ;;
+esac