diff options
Diffstat (limited to 'meta/recipes-connectivity/gsm/files/default')
| -rw-r--r-- | meta/recipes-connectivity/gsm/files/default | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/gsm/files/default b/meta/recipes-connectivity/gsm/files/default new file mode 100644 index 0000000000..6ef4f6db57 --- /dev/null +++ b/meta/recipes-connectivity/gsm/files/default | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | # gsmd This shell script configures for the gsmd init script. | ||
| 2 | |||
| 3 | . /etc/init.d/functions | ||
| 4 | |||
| 5 | case `machine_id` in | ||
| 6 | "gta01"|"gta02") | ||
| 7 | GSMD_OPTS="-s 115200 -F" | ||
| 8 | if [ -d '/sys/bus/platform/devices/gta01-pm-gsm.0' ] ; then | ||
| 9 | GSM_POW="/sys/bus/platform/devices/gta01-pm-gsm.0/power_on" | ||
| 10 | GSM_RES="/sys/bus/platform/devices/gta01-pm-gsm.0/reset" | ||
| 11 | else | ||
| 12 | GSM_POW="/sys/bus/platform/devices/neo1973-pm-gsm.0/power_on" | ||
| 13 | GSM_RES="/sys/bus/platform/devices/neo1973-pm-gsm.0/reset" | ||
| 14 | fi | ||
| 15 | GSM_DEV="/dev/ttySAC0" | ||
| 16 | GSM_DL="/sys/devices/platform/neo1973-pm-gsm.0/download" | ||
| 17 | ;; | ||
| 18 | "htc_apache"|"htc_blueangel"|"htc_universal") | ||
| 19 | GSMD_OPTS="-s 115200 -F" | ||
| 20 | GSM_DEV="/dev/ttyS0" | ||
| 21 | ;; | ||
| 22 | "htc_himalaya") | ||
| 23 | GSMD_OPTS="-s 115200 -F" | ||
| 24 | GSM_DEV="/dev/ttyS2" | ||
| 25 | ;; | ||
| 26 | "htc_magician") | ||
| 27 | GSMD_OPTS="-s 115200 -F" | ||
| 28 | GSM_DEV="/dev/ttyS1" | ||
| 29 | ;; | ||
| 30 | "palm_treo_650") | ||
| 31 | GSMD_OPTS="-s 460800 -F -w 1" | ||
| 32 | GSM_DEV="/dev/ttyS0" | ||
| 33 | ;; | ||
| 34 | "motorola_ezx_platform") | ||
| 35 | GSMD_OPTS="-s 115200 -F -v ti" | ||
| 36 | GSM_DEV="/dev/mux0" | ||
| 37 | ;; | ||
| 38 | "omap3430_ldp_board") | ||
| 39 | # Need a machine for the Zoom modem, but this will do | ||
| 40 | GSMD_OPTS="-s 460800 -F -v ti -m gta01" | ||
| 41 | GSM_DEV="/dev/ttyS0" | ||
| 42 | ;; | ||
| 43 | *) | ||
| 44 | # Unknown board | ||
| 45 | |||
| 46 | # If you must specify special options, uncomment and modify the next line | ||
| 47 | #GSMD_OPTS="-s 115200 -F" | ||
| 48 | |||
| 49 | # If your GSM device needs to be powered up, uncomment and modify the next line | ||
| 50 | #GSM_POW="/sys/bus/platform/devices/gta01-pm-gsm.0/power_on" | ||
| 51 | |||
| 52 | # If your GSM device then needs to be reset, uncomment and modify the next line | ||
| 53 | #GSM_RES="/sys/bus/platform/devices/gta01-pm-gsm.0/reset" | ||
| 54 | |||
| 55 | # This should be in a common /etc/default/serial, together with | ||
| 56 | # BT_DEV and IR_DEV for devices that have those on a serial port | ||
| 57 | #GSM_DEV="/dev/ttyS1" | ||
| 58 | ;; | ||
| 59 | esac | ||
