summaryrefslogtreecommitdiff
path: root/lib/mpi/mpicoder.c
diff options
context:
space:
mode:
authorJack Pham <jackp@codeaurora.org>2016-11-08 11:07:31 -0800
committerJack Pham <jackp@codeaurora.org>2016-11-23 10:42:06 -0800
commite0402850561111a16596bd951398a13635568d45 (patch)
treebfa7d7a4557153af49cc3803b85abb138def64a6 /lib/mpi/mpicoder.c
parent1e1700765225e4aa31d076f78c9937bd93509083 (diff)
usb: pd: Support Android dual_role_usb sysfs class
Export an instance of the dual_role_usb class using the provided helpers. This is an alternate set of sysfs nodes that the Android framework uses to allow for user interactive control of role switching. Writing to the various properties achieves the following: - mode: toggles between UFP/Sink and DFP/Source via soft disconnect/reconnect without invoking PD. - power_role: toggles between Source and Sink modes via the PR_Swap operation - data_role: toggles between UFP (device) and DFP (host) via the DR_Swap operation Android currently expects a single instance named "otg_default". Change-Id: I7060b6f379bc8bed24b59d9df4ca2fb331437363 Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions