diff options
author | Aren Moynihan <aren@peacevolution.org> | 2024-01-30 15:27:58 -0500 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2024-02-02 23:21:53 +0100 |
commit | b02fbd830edf9f2cce076d93b787827aac1e402a (patch) | |
tree | 803686df069319bef275f6f77d154d648baadee8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bec924d27a1fda74ec9ae9a1bae1e32723e32bcb (diff) |
power: supply: axp20x_usb_power: use correct register for input current limit
On the axp803 and axp813 chips register 0x30 bits 0-1 is the default
current limit that gets applied after the pmic detects a CDP or DCP
port. The correct field to set is 0x35 bits 4-7.
This field only has nine values (out of the 16 possible if it used all
the bits), so introduce a field size variable to take that into account.
Signed-off-by: Aren Moynihan <aren@peacevolution.org>
Link: https://lore.kernel.org/r/20240130203714.3020464-3-aren@peacevolution.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions