diff options
author | 2016-07-15 16:28:42 -0700 | |
---|---|---|
committer | 2016-07-25 10:33:03 +0200 | |
commit | 2b66bd692c40034d42d905f37f7f20c3540f185e (patch) | |
tree | 9da4e7a642a6ea443de3ef208c78ce7eb414bf01 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | mfd: cros_ec: Add cros_ec_cmd_xfer_status() helper (diff) | |
download | wireguard-linux-2b66bd692c40034d42d905f37f7f20c3540f185e.tar.xz wireguard-linux-2b66bd692c40034d42d905f37f7f20c3540f185e.zip |
mfd: cros_ec: Add EC_PWM function definitions
The EC_CMD_PWM_{GET,SET}_DUTY commands allow us to control a PWM that is
attached to the EC, rather than the main host SoC. The API provides
functionality-based (e.g., keyboard light, backlight) or index-based
addressing of the PWM(s). Duty cycles are represented by a 16-bit value,
where 0 maps to 0% duty cycle and U16_MAX maps to 100%. The period
cannot be controlled.
This command set is more generic than, e.g.,
EC_CMD_PWM_{GET,SET}_KEYBOARD_BACKLIGHT and could possibly used to
replace it on future products.
Let's update the command header to include the definitions.
Signed-off-by: Brian Norris <briannorris@chromium.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions