Skip to content

Commit

Permalink
Add AT modem port support for android gadget.
Browse files Browse the repository at this point in the history
[usb-moded] Add AT modem port support. Partyly fixes:JB#7992

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Aug 14, 2013
1 parent 40e9ff2 commit c9527b3
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
13 changes: 13 additions & 0 deletions config/dyn-modes/android_at.ini
@@ -0,0 +1,13 @@
[mode]
name = at_mode
module = none

[options]
sysfs_path = /sys/class/android_usb/android0/functions
sysfs_value = serial
sysfs_reset_value = none
softconnect_path = /sys/class/android_usb/android0/enable
softconnect = 1
softconnec_disconnect = 0
android_extra_sysfs_path = /sys/class/android_usb/android0/f_serial/transports
android_extra_sysfs_value = smd,tty
18 changes: 17 additions & 1 deletion rpm/usb-moded.spec
@@ -1,5 +1,5 @@
Name: usb-moded
Version: 0.65
Version: 0.66
Release: 0
Summary: USB mode controller
Group: System/System Control
Expand Down Expand Up @@ -171,6 +171,18 @@ system bus.

This package contains the android pc suite mode config.

%package at-mode-android
Summary: USB mode controller - android at modem mode config
Group: Config

%description at-mode-android
Usb_moded is a daemon to control the USB states. For this
it loads unloads the relevant usb gadget modules, keeps track
of the filesystem(s) and notifies about changes on the DBUS
system bus.

This package contains the android at modem port mode config.

%package usb-moded-defaults
Summary: USB mode controller - default configuration
Group: Config
Expand Down Expand Up @@ -309,6 +321,10 @@ systemctl daemon-reload
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/pc_suite-android.ini

%files at-mode-android
%defattr(-,root,root,-)
%{_sysconfdir}/usb-moded/dyn-modes/android_at.ini

%files usb-moded-defaults
%defattr(-,root,root,-)

Expand Down

0 comments on commit c9527b3

Please sign in to comment.