summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJack Pham <jackp@codeaurora.org>2016-12-06 00:38:55 -0800
committerJack Pham <jackp@codeaurora.org>2017-01-31 14:53:07 -0800
commit1fb96a7df5d32d43fd41487a8b907045ac6d8046 (patch)
tree3cca66b2ee40d546d01bf0a42706c3dd86371e25 /tools/perf/scripts/python
parentff00f08624b3c99915fc813abbb651cf7a269d6f (diff)
usb: pd: Support Programmable Power Supply as sink
PD 3.0 version 1.1 includes a new Programmable Power Supply type that can be sent as an Augmented Power Data Object in a Source Capabilities message. Add sink-side support to request an Augmented PDO which also includes specifying the source's output output voltage and current. For userspace, overload the 'select_pdo' sysfs attribute by allowing voltage (uV) and current (uA) to be optionally written, with the following syntax: echo <src cap id> <PDO> [<uV> <uA>] > select_pdo Also rename the 'rdo' file to 'rdo_h' as it is already in human- readable format, enhance it with APDO values, and make 'rdo' simply spit out the hex value. Change-Id: If861b0f8f2f04d06299f096ff52f1e1961c1daa9 Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions